Exception: Kumi::Parser::Errors::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- Kumi::Parser::Errors::ParseError
- Defined in:
- lib/kumi/parser/errors.rb
Overview
Custom error for parsing issues
Instance Attribute Summary collapse
-
#suggestions ⇒ Object
readonly
Returns the value of attribute suggestions.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(message, token:, suggestions: []) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(message, token:, suggestions: []) ⇒ ParseError
Returns a new instance of ParseError.
9 10 11 12 13 |
# File 'lib/kumi/parser/errors.rb', line 9 def initialize(, token:, suggestions: []) @token = token @suggestions = suggestions super(()) end |
Instance Attribute Details
#suggestions ⇒ Object (readonly)
Returns the value of attribute suggestions.
7 8 9 |
# File 'lib/kumi/parser/errors.rb', line 7 def suggestions @suggestions end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
7 8 9 |
# File 'lib/kumi/parser/errors.rb', line 7 def token @token end |