Exception: Pione::Lang::CircularReferenceError

Inherits:
BindingError show all
Defined in:
lib/pione/lang/lang-exception.rb

Overview

CircularReferenceError is raised when variable or rule reference loop was deteced.

Instance Method Summary collapse

Methods inherited from BindingError

#name

Constructor Details

#initialize(ref) ⇒ CircularReferenceError

Returns a new instance of CircularReferenceError.



131
132
133
# File 'lib/pione/lang/lang-exception.rb', line 131

def initialize(ref)
  @ref = ref
end

Instance Method Details

#messageObject



135
136
137
# File 'lib/pione/lang/lang-exception.rb', line 135

def message
  "reference of %s in package &%s made loop%s" % [name, @ref.package_id, @ref.pos.format]
end