Exception: Conflisp::ConflispError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/conflisp/conflisp_error.rb

Overview

Base class for ConflispError

Direct Known Subclasses

MethodMissing, RuntimeError

Instance Attribute Summary collapse

Instance Method Summary collapse

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_stackObject (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_sObject



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