class Mustache::Parser

def error(message, pos = position)

handled for you.
error - other details such as line number and position are
Raises a SyntaxError. The message should be the name of the
def error(message, pos = position)
  raise SyntaxError.new(message, pos)
end