Exception: SendLayer::SendLayerAPIError

Inherits:
SendLayerError show all
Defined in:
lib/sendlayer/exceptions.rb

Instance Attribute Summary collapse

Attributes inherited from SendLayerError

#message

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code = nil, response = nil) ⇒ SendLayerAPIError



14
15
16
17
18
# File 'lib/sendlayer/exceptions.rb', line 14

def initialize(message, status_code = nil, response = nil)
  @status_code = status_code
  @response = response
  super(message)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



12
13
14
# File 'lib/sendlayer/exceptions.rb', line 12

def response
  @response
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



12
13
14
# File 'lib/sendlayer/exceptions.rb', line 12

def status_code
  @status_code
end