Exception: RLTK::HandledError
- Inherits:
-
StandardError
- Object
- StandardError
- RLTK::HandledError
- Defined in:
- lib/rltk/parser.rb
Overview
An error of this type is raised when the parser encountered a error that was handled by an error production.
Instance Attribute Summary collapse
-
#errors ⇒ Array<Object>
readonly
The errors as reported by the parser.
-
#result ⇒ Object
readonly
The result that would have been returned by the call to parse.
Instance Method Summary collapse
-
#initialize(errors, result) ⇒ HandledError
constructor
Instantiate a new HandledError object with errors.
Constructor Details
#initialize(errors, result) ⇒ HandledError
Instantiate a new HandledError object with errors.
73 74 75 76 |
# File 'lib/rltk/parser.rb', line 73 def initialize(errors, result) @errors = errors @result = result end |
Instance Attribute Details
#errors ⇒ Array<Object> (readonly)
The errors as reported by the parser.
64 65 66 |
# File 'lib/rltk/parser.rb', line 64 def errors @errors end |
#result ⇒ Object (readonly)
The result that would have been returned by the call to parse.
67 68 69 |
# File 'lib/rltk/parser.rb', line 67 def result @result end |