Exception: Exchanger::Operation::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/exchanger/operation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response_code) ⇒ ResponseError

Returns a new instance of ResponseError.



64
65
66
67
# File 'lib/exchanger/operation.rb', line 64

def initialize(message, response_code)
  super message
  @response_code = response_code
end

Instance Attribute Details

#response_codeObject (readonly)

Returns the value of attribute response_code.



62
63
64
# File 'lib/exchanger/operation.rb', line 62

def response_code
  @response_code
end