Exception: Rea::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Rea::Error
- Defined in:
- lib/rea/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(msg, cause = $!) ⇒ Error
constructor
A new instance of Error.
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
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
4 5 6 |
# File 'lib/rea/errors.rb', line 4 def cause @cause end |