Exception: ActiveQuery::SQLParser::SyntaxError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_query/sql_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = "", line:, pos:) ⇒ SyntaxError

Returns a new instance of SyntaxError.



9
10
11
12
# File 'lib/active_query/sql_parser.rb', line 9

def initialize(msg = "", line:, pos:)
  msg = "Missing #{msg} on line #{line} (pos. #{pos})"
  super(msg)
end

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



8
9
10
# File 'lib/active_query/sql_parser.rb', line 8

def line
  @line
end

#posObject (readonly)

Returns the value of attribute pos.



8
9
10
# File 'lib/active_query/sql_parser.rb', line 8

def pos
  @pos
end