Exception: Pione::Lang::RebindError
- Inherits:
-
BindingError
- Object
- StandardError
- LangError
- BindingError
- Pione::Lang::RebindError
- Defined in:
- lib/pione/lang/lang-exception.rb
Overview
RebindError is raised when we try to rebind some value in variable table, param table, or rule table.
Instance Method Summary collapse
-
#initialize(ref) ⇒ RebindError
constructor
A new instance of RebindError.
- #message ⇒ Object
Methods inherited from BindingError
Constructor Details
#initialize(ref) ⇒ RebindError
Returns a new instance of RebindError.
120 121 122 |
# File 'lib/pione/lang/lang-exception.rb', line 120 def initialize(ref) @ref = ref end |
Instance Method Details
#message ⇒ Object
124 125 126 |
# File 'lib/pione/lang/lang-exception.rb', line 124 def "try to rebind %s in package &%s%s" % [name, @ref.package_id, @ref.pos.format] end |