Exception: ActiveQuery::SQLParser::SyntaxError
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveQuery::SQLParser::SyntaxError
- Defined in:
- lib/active_query/sql_parser.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#pos ⇒ Object
readonly
Returns the value of attribute pos.
Instance Method Summary collapse
-
#initialize(msg = "", line:, pos:) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
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
#line ⇒ Object (readonly)
Returns the value of attribute line.
8 9 10 |
# File 'lib/active_query/sql_parser.rb', line 8 def line @line end |
#pos ⇒ Object (readonly)
Returns the value of attribute pos.
8 9 10 |
# File 'lib/active_query/sql_parser.rb', line 8 def pos @pos end |