Exception: Kintone::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/kintone/client/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, path, method_name, params) ⇒ Error

Returns a new instance of Error.



4
5
6
7
8
# File 'lib/kintone/client/error.rb', line 4

def initialize(response, path, method_name, params)
  message = [response['message'], response['errors'], path, method_name, params].join(' ')
  super(message)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



2
3
4
# File 'lib/kintone/client/error.rb', line 2

def response
  @response
end