Exception: DSLCompose::Interpreter::InterpreterError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dsl_compose/interpreter/interpreter_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, original_context) ⇒ InterpreterError

Returns a new instance of InterpreterError.



8
9
10
11
# File 'lib/dsl_compose/interpreter/interpreter_error.rb', line 8

def initialize(message, original_context)
  super(message)
  @original_context = original_context
end

Instance Attribute Details

#original_contextObject (readonly)

Returns the value of attribute original_context.



6
7
8
# File 'lib/dsl_compose/interpreter/interpreter_error.rb', line 6

def original_context
  @original_context
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/dsl_compose/interpreter/interpreter_error.rb', line 13

def to_s
  "#{super}\ndsl source: #{@original_context}"
end