Exception: Myrrha::Error
- Defined in:
- lib/myrrha/errors.rb
Overview
Raised when a coercion fails
Instance Attribute Summary collapse
-
#cause ⇒ Object
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.
6 7 8 9 |
# File 'lib/myrrha/errors.rb', line 6 def initialize(msg, cause = $!) super(msg) @cause = cause end |
Instance Attribute Details
#cause ⇒ Object
Returns the value of attribute cause.
5 6 7 |
# File 'lib/myrrha/errors.rb', line 5 def cause @cause end |