Exception: Conflisp::ConflispError
- Inherits:
-
StandardError
- Object
- StandardError
- Conflisp::ConflispError
- Defined in:
- lib/conflisp/conflisp_error.rb
Overview
Base class for ConflispError
Direct Known Subclasses
Instance Attribute Summary collapse
-
#conflisp_stack ⇒ Object
readonly
Returns the value of attribute conflisp_stack.
Instance Method Summary collapse
-
#initialize(*args) ⇒ ConflispError
constructor
A new instance of ConflispError.
- #to_s ⇒ Object
Constructor Details
#initialize(*args) ⇒ ConflispError
Returns a new instance of ConflispError.
8 9 10 11 12 |
# File 'lib/conflisp/conflisp_error.rb', line 8 def initialize(*args) super @conflisp_stack = [] end |
Instance Attribute Details
#conflisp_stack ⇒ Object (readonly)
Returns the value of attribute conflisp_stack.
6 7 8 |
# File 'lib/conflisp/conflisp_error.rb', line 6 def conflisp_stack @conflisp_stack end |
Instance Method Details
#to_s ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/conflisp/conflisp_error.rb', line 14 def to_s ret = super conflisp_stack.each do |expression| ret += "\n in expression #{expression}" end ret end |