Exception: Solidgate::APIError

Inherits:
Error
  • Object
show all
Defined in:
lib/solidgate/errors.rb

Overview

API error

Instance Attribute Summary collapse

Attributes inherited from Error

#code, #details

Instance Method Summary collapse

Constructor Details

#initialize(message, code, details = nil, http_status = nil) ⇒ APIError

Returns a new instance of APIError.



20
21
22
23
# File 'lib/solidgate/errors.rb', line 20

def initialize(message, code, details = nil, http_status = nil)
  super(message, code, details)
  @http_status = http_status
end

Instance Attribute Details

#http_statusObject (readonly)

Returns the value of attribute http_status.



25
26
27
# File 'lib/solidgate/errors.rb', line 25

def http_status
  @http_status
end