class Pione::Lang::UnboundError
UnboundError
is raised when unbound variable, rule, or package was referred.
Public Class Methods
new(ref)
click to toggle source
# File lib/pione/lang/lang-exception.rb, line 103 def initialize(ref) @ref = ref end
Public Instance Methods
message()
click to toggle source
# File lib/pione/lang/lang-exception.rb, line 107 def message case @ref when Variable, RuleExpr "%s in package %s is unbound%s" % [name, @ref.package_id, @ref.pos.format] when PackageExpr "package &%s is unknown" % @ref.package_id end end