Exception: GQL::Errors::SyntaxError
- Inherits:
-
GQL::Error
- Object
- StandardError
- GQL::Error
- GQL::Errors::SyntaxError
- Defined in:
- lib/gql/errors.rb
Instance Method Summary collapse
-
#initialize(lineno, value, token) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
Constructor Details
#initialize(lineno, value, token) ⇒ SyntaxError
Returns a new instance of SyntaxError.
55 56 57 58 59 |
# File 'lib/gql/errors.rb', line 55 def initialize(lineno, value, token) token = 'character' if token == 'error' || token == %Q{"#{value}"} super("Unexpected #{token}: `#{value}` (line #{lineno}).") end |