Exception: ChatWork::APIError

Inherits:
ChatWorkError show all
Defined in:
lib/chatwork/chatwork_error.rb

Instance Attribute Summary collapse

Attributes inherited from ChatWorkError

#error_response, #status

Instance Method Summary collapse

Methods inherited from ChatWorkError

from_response

Constructor Details

#initialize(status, error_response) ⇒ APIError

Returns a new instance of APIError.


51
52
53
54
# File 'lib/chatwork/chatwork_error.rb', line 51

def initialize(status, error_response)
  @errors = error_response
  super(error_response[0], status, error_response)
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors


49
50
51
# File 'lib/chatwork/chatwork_error.rb', line 49

def errors
  @errors
end