Exception: Konfidant::ApiError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code, body) ⇒ ApiError

Returns a new instance of ApiError.



5
6
7
8
9
# File 'lib/konfidant/errors.rb', line 5

def initialize(message, status_code, body)
  super(message)
  @status_code = status_code
  @body        = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



3
4
5
# File 'lib/konfidant/errors.rb', line 3

def body
  @body
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



3
4
5
# File 'lib/konfidant/errors.rb', line 3

def status_code
  @status_code
end