Exception: Qinium::APIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/qinium/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, body, headers) ⇒ APIError

Returns a new instance of APIError.



7
8
9
10
11
12
# File 'lib/qinium/errors.rb', line 7

def initialize(code, body, headers)
  @code = code
  @body = body
  @headers = headers
  super(body)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'lib/qinium/errors.rb', line 5

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



5
6
7
# File 'lib/qinium/errors.rb', line 5

def code
  @code
end

#headersObject (readonly)

Returns the value of attribute headers.



5
6
7
# File 'lib/qinium/errors.rb', line 5

def headers
  @headers
end