Exception: Tomba::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- Tomba::Exception
- Defined in:
- lib/tomba/exception.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, code, response) ⇒ Exception
constructor
A new instance of Exception.
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(, code, response) super() @code = code @response = response end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
11 12 13 |
# File 'lib/tomba/exception.rb', line 11 def code @code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
12 13 14 |
# File 'lib/tomba/exception.rb', line 12 def response @response end |