Exception: Twizo::TwizoError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/twizo/twizo_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



16
17
18
# File 'lib/twizo/twizo_error.rb', line 16

def body
  @body
end