Exception: Voodoo::Parser::ParserInternalError
- Defined in:
- lib/voodoo/parser.rb
Overview
Class for parser internal errors. A ParserInternalError indicates an error in the parser that is not flagged as an error in the code being parsed. Possible causes include I/O errors while reading code, as well as bugs in the parser.
The cause
attribute indicates the initial cause for the error. The other attributes of ParserInternalError are inherited from Parser::Error and indicate the input that was being processed when the error occurred.
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Attributes inherited from Error
#input_name, #start_column, #start_line, #text
Instance Method Summary collapse
-
#initialize(cause, input_name, start_line, start_column, text) ⇒ ParserInternalError
constructor
A new instance of ParserInternalError.
Constructor Details
#initialize(cause, input_name, start_line, start_column, text) ⇒ ParserInternalError
Returns a new instance of ParserInternalError.
76 77 78 79 |
# File 'lib/voodoo/parser.rb', line 76 def initialize cause, input_name, start_line, start_column, text super cause., input_name, start_line, start_column, text @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
81 82 83 |
# File 'lib/voodoo/parser.rb', line 81 def cause @cause end |