Exception: SendLayer::SendLayerAPIError
- Inherits:
-
SendLayerError
- Object
- StandardError
- SendLayerError
- SendLayer::SendLayerAPIError
- Defined in:
- lib/sendlayer/exceptions.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Attributes inherited from SendLayerError
Instance Method Summary collapse
-
#initialize(message, status_code = nil, response = nil) ⇒ SendLayerAPIError
constructor
A new instance of SendLayerAPIError.
Constructor Details
#initialize(message, status_code = nil, response = nil) ⇒ SendLayerAPIError
14 15 16 17 18 |
# File 'lib/sendlayer/exceptions.rb', line 14 def initialize(, status_code = nil, response = nil) @status_code = status_code @response = response super() end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
12 13 14 |
# File 'lib/sendlayer/exceptions.rb', line 12 def response @response end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
12 13 14 |
# File 'lib/sendlayer/exceptions.rb', line 12 def status_code @status_code end |