Exception: Billimatic::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- Billimatic::Exception
- Defined in:
- lib/billimatic/exception.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(args = {}) ⇒ Exception
Returns a new instance of Exception.
5 6 7 8 9 |
# File 'lib/billimatic/exception.rb', line 5 def initialize(args = {}) super(args[:message]) @code = args[:code] @body = args[:body] end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/billimatic/exception.rb', line 3 def body @body end |
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/billimatic/exception.rb', line 3 def code @code end |