Exception: Pione::Lang::RebindError

Inherits:
BindingError show all
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

Methods inherited from BindingError

#name

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

#messageObject



124
125
126
# File 'lib/pione/lang/lang-exception.rb', line 124

def message
  "try to rebind %s in package &%s%s" % [name, @ref.package_id, @ref.pos.format]
end