Exception: Easee::Errors::RequestFailed

Inherits:
Base
  • Object
show all
Defined in:
lib/easee/errors.rb

Direct Known Subclasses

RateLimitExceeded

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#retryable?

Constructor Details

#initialize(message, response = nil) ⇒ RequestFailed

Returns a new instance of RequestFailed.



12
13
14
15
# File 'lib/easee/errors.rb', line 12

def initialize(message, response = nil)
  @response = response
  super(message)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



10
11
12
# File 'lib/easee/errors.rb', line 10

def response
  @response
end