Exception: Jatai::Api::Client::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jatai/api/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status: nil, body: nil) ⇒ ApiError

Returns a new instance of ApiError.



11
12
13
14
15
# File 'lib/jatai/api/client.rb', line 11

def initialize(message, status: nil, body: nil)
  @status = status
  @body = body
  super(message)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



9
10
11
# File 'lib/jatai/api/client.rb', line 9

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



9
10
11
# File 'lib/jatai/api/client.rb', line 9

def status
  @status
end