Exception: Cfan122::Operation::ResponseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response_code) ⇒ ResponseError

Returns a new instance of ResponseError.



44
45
46
47
# File 'lib/cfan122/operation.rb', line 44

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.



42
43
44
# File 'lib/cfan122/operation.rb', line 42

def response_code
  @response_code
end