class Pione::Lang::LangTypeError
LangTypeError
represents type mismatch error in PIONE language.
Public Class Methods
new(obj, type, env)
click to toggle source
# File lib/pione/lang/lang-exception.rb, line 159 def initialize(obj, type, env) @obj = obj @type = type @env = env end
Public Instance Methods
message()
click to toggle source
# File lib/pione/lang/lang-exception.rb, line 165 def message args = [ @type.name, @obj.pione_type(env).name, @obj.line, @obj.column ] "expected %s, but got %s(line: %s, column: %s)" % args end