Exception: Forest::Error

Inherits:
StandardError
  • Object
show all
Defined in:
app/classes/forest/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#objectObject (readonly)

Returns the value of attribute object.



2
3
4
# File 'app/classes/forest/error.rb', line 2

def object
  @object
end