Exception: Conflisp::RuntimeError

Inherits:
ConflispError show all
Defined in:
lib/conflisp/runtime_error.rb

Overview

Error raised when evaluation of a Conflisp expression fails

Instance Attribute Summary collapse

Attributes inherited from ConflispError

#conflisp_stack

Instance Method Summary collapse

Methods inherited from ConflispError

#to_s

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)
  message = "#{error.class.name}: #{error.message}"
  message += "\n  while evaluating #{expression}"
  super(message)

  @original_error = error
end

Instance Attribute Details

#original_errorObject (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