Exception: ShEx::ParseError
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/shex-f64040a493d0/lib/shex.rb
Overview
Indicates bad syntax found in LD Patch document
Instance Attribute Summary collapse
-
#lineno ⇒ Integer
readonly
The line number where the error occurred.
-
#token ⇒ String
readonly
The invalid token which triggered the error.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, token: nil, lineno: nil) ⇒ ParseError
constructor
ParseError includes
token
andlineno
associated with the expression.
Constructor Details
#initialize(message, token: nil, lineno: nil) ⇒ ParseError
ParseError includes token
and lineno
associated with the expression.
196 197 198 199 200 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/shex-f64040a493d0/lib/shex.rb', line 196 def initialize(, token: nil, lineno: nil) @token = token @lineno = lineno || (@token.lineno if @token.respond_to?(:lineno)) super(.to_s) end |
Instance Attribute Details
#lineno ⇒ Integer (readonly)
The line number where the error occurred.
188 189 190 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/shex-f64040a493d0/lib/shex.rb', line 188 def lineno @lineno end |
#token ⇒ String (readonly)
The invalid token which triggered the error.
182 183 184 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/shex-f64040a493d0/lib/shex.rb', line 182 def token @token end |