Exception: PuppetLint::LexerError
- Inherits:
-
StandardError
- Object
- StandardError
- PuppetLint::LexerError
- Defined in:
- lib/puppet-lint/lexer.rb
Overview
Internal: A generic error thrown by the lexer when it encounters something it can’t handle.
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Internal: Get the Integer column number of the location of the error.
-
#line_no ⇒ Object
readonly
Internal: Get the Integer line number of the location of the error.
Instance Method Summary collapse
-
#initialize(line_no, column) ⇒ LexerError
constructor
Internal: Initialise a new PuppetLint::LexerError object.
Constructor Details
#initialize(line_no, column) ⇒ LexerError
Internal: Initialise a new PuppetLint::LexerError object.
line_no - The Integer line number of the location of the error. column - The Integer column number of the location of the error.
20 21 22 23 |
# File 'lib/puppet-lint/lexer.rb', line 20 def initialize(line_no, column) @line_no = line_no @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Internal: Get the Integer column number of the location of the error.
14 15 16 |
# File 'lib/puppet-lint/lexer.rb', line 14 def column @column end |
#line_no ⇒ Object (readonly)
Internal: Get the Integer line number of the location of the error.
11 12 13 |
# File 'lib/puppet-lint/lexer.rb', line 11 def line_no @line_no end |