Exception: Pione::Lang::CircularReferenceError
- Inherits:
-
BindingError
- Object
- StandardError
- LangError
- BindingError
- Pione::Lang::CircularReferenceError
- Defined in:
- lib/pione/lang/lang-exception.rb
Overview
CircularReferenceError is raised when variable or rule reference loop was deteced.
Instance Method Summary collapse
-
#initialize(ref) ⇒ CircularReferenceError
constructor
A new instance of CircularReferenceError.
- #message ⇒ Object
Methods inherited from BindingError
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
#message ⇒ Object
135 136 137 |
# File 'lib/pione/lang/lang-exception.rb', line 135 def "reference of %s in package &%s made loop%s" % [name, @ref.package_id, @ref.pos.format] end |