Exception: Rea::Error

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

Direct Known Subclasses

DomainError, SystemError

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/rea/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/rea/errors.rb', line 4

def cause
  @cause
end