Exception: TrinoSqlParser::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- TrinoSqlParser::ParseError
- Defined in:
- lib/trino_sql_parser.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(errors) ⇒ ParseError
Returns a new instance of ParseError.
25 26 27 28 29 30 31 |
# File 'lib/trino_sql_parser.rb', line 25 def initialize(errors) @errors = errors = errors.map do |error| "[#{error['line']}:#{error['column']}] #{error['message']}" end.join(", ") super() end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
33 34 35 |
# File 'lib/trino_sql_parser.rb', line 33 def errors @errors end |