Exception: Gisele::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gisele/errors.rb

Direct Known Subclasses

InternalError, NoSuchVariableError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, cause = $!) ⇒ Error

Returns a new instance of Error.



5
6
7
8
# File 'lib/gisele/errors.rb', line 5

def initialize(msg, cause = $!)
  super(msg)
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



4
5
6
# File 'lib/gisele/errors.rb', line 4

def cause
  @cause
end