Exception: Ruby::Rego::LexerError
- Defined in:
- lib/ruby/rego/errors.rb
Overview
Error raised during tokenization.
Instance Attribute Summary collapse
-
#column ⇒ Integer
readonly
-
#line ⇒ Integer
readonly
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, line:, column:, offset: nil, length: nil) ⇒ LexerError
constructor
Create a lexer error.
Methods inherited from Error
Constructor Details
#initialize(message, line:, column:, offset: nil, length: nil) ⇒ LexerError
Create a lexer error.
71 72 73 74 75 76 |
# File 'lib/ruby/rego/errors.rb', line 71 def initialize(, line:, column:, offset: nil, length: nil) @line = line @column = column location = Location.new(line: line, column: column, offset: offset, length: length) super(, location: location) end |
Instance Attribute Details
#column ⇒ Integer (readonly)
62 63 64 |
# File 'lib/ruby/rego/errors.rb', line 62 def column @column end |
#line ⇒ Integer (readonly)
59 60 61 |
# File 'lib/ruby/rego/errors.rb', line 59 def line @line end |