Exception: Tr3llo::Client::RequestError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/3llo/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ RequestError

Returns a new instance of RequestError.



14
15
16
17
# File 'lib/3llo/client.rb', line 14

def initialize(response)
  @response = response
  super()
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



12
13
14
# File 'lib/3llo/client.rb', line 12

def response
  @response
end

Instance Method Details

#messageObject



19
20
21
# File 'lib/3llo/client.rb', line 19

def message
  "Request error: #{response}"
end