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.



54
55
56
57
# File 'lib/chatwork/chatwork_error.rb', line 54

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.



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

def errors
  @errors
end