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, #initialize

Constructor Details

This class inherits a constructor from ChatWork::ChatWorkError

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



45
46
47
# File 'lib/chatwork/chatwork_error.rb', line 45

def errors
  @errors
end

Instance Method Details

#initilize(message, error_response) ⇒ Object



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

def initilize(message, error_response)
  @errors = error_response["errors"]
  super(error_response["message"], status, error_response)
end