Exception: Tomba::Exception

Inherits:
StandardError
  • Object
show all
Defined in:
lib/tomba/exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code, response) ⇒ Exception

Returns a new instance of Exception.



6
7
8
9
10
# File 'lib/tomba/exception.rb', line 6

def initialize(message, code, response)
    super(message)
    @code = code
    @response = response
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



11
12
13
# File 'lib/tomba/exception.rb', line 11

def code
  @code
end

#responseObject (readonly)

Returns the value of attribute response.



12
13
14
# File 'lib/tomba/exception.rb', line 12

def response
  @response
end