class PuppetLint::LexerError
Internal: A generic error thrown by the lexer when it encounters something it can’t handle.
Attributes
Internal: Get the Integer column number of the location of the error.
Internal: Get the Integer line number of the location of the error.
Internal: Get the String
reason for the error (if known).
Public Class Methods
Source
# File lib/puppet-lint/lexer.rb, line 24 def initialize(line_no, column, reason = nil) @line_no = line_no @column = column @reason = reason end
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. reason - A String
describing the cause of the error (if known). rubocop:disable Lint/MissingSuper
Public Instance Methods
Source
# File lib/puppet-lint/lexer.rb, line 30 def to_s "PuppetLint::LexerError: Line:#{line_no} Column: #{column} Reason: #{reason}" end