Exception: Jerry::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Jerry::Error
- Defined in:
- lib/jerry/errors.rb
Overview
Base error class for Jerry that allows recording causing exceptions
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/jerry/errors.rb', line 8 def initialize( = nil) super @cause = $ERROR_INFO end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
6 7 8 |
# File 'lib/jerry/errors.rb', line 6 def cause @cause end |