Exception: Conflisp::RuntimeError
- Inherits:
-
ConflispError
- Object
- StandardError
- ConflispError
- Conflisp::RuntimeError
- Defined in:
- lib/conflisp/runtime_error.rb
Overview
Error raised when evaluation of a Conflisp expression fails
Instance Attribute Summary collapse
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
Attributes inherited from ConflispError
Instance Method Summary collapse
-
#initialize(error, expression) ⇒ RuntimeError
constructor
A new instance of RuntimeError.
Methods inherited from ConflispError
Constructor Details
#initialize(error, expression) ⇒ RuntimeError
Returns a new instance of RuntimeError.
10 11 12 13 14 15 16 |
# File 'lib/conflisp/runtime_error.rb', line 10 def initialize(error, expression) = "#{error.class.name}: #{error.}" += "\n while evaluating #{expression}" super() @original_error = error end |
Instance Attribute Details
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
8 9 10 |
# File 'lib/conflisp/runtime_error.rb', line 8 def original_error @original_error end |