Exception: Forest::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Forest::Error
- Defined in:
- app/classes/forest/error.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(msg = 'Forest::Error', object = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg = 'Forest::Error', object = nil) ⇒ Error
Returns a new instance of Error.
4 5 6 7 |
# File 'app/classes/forest/error.rb', line 4 def initialize(msg= 'Forest::Error', object = nil) @object = object super msg end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
2 3 4 |
# File 'app/classes/forest/error.rb', line 2 def object @object end |