Exception: Twizo::TwizoError
- Inherits:
-
StandardError
- Object
- StandardError
- Twizo::TwizoError
- Defined in:
- lib/twizo/twizo_error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(code, body = nil?) ) ⇒ TwizoError
constructor
A new instance of TwizoError.
Constructor Details
#initialize(code, body = nil?) ) ⇒ TwizoError
Returns a new instance of TwizoError.
18 19 20 21 22 |
# File 'lib/twizo/twizo_error.rb', line 18 def initialize(code, body = nil?) super(code) @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
16 17 18 |
# File 'lib/twizo/twizo_error.rb', line 16 def body @body end |