Exception: 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.
54 55 56 57 |
# File 'lib/rltk/parser.rb', line 54 def initialize(errors, result) @errors = errors @result = result end |
Instance Attribute Details
#errors ⇒ Array<Object> (readonly)
The errors as reported by the parser.
45 46 47 |
# File 'lib/rltk/parser.rb', line 45 def errors @errors end |
#result ⇒ Object (readonly)
The result that would have been returned by the call to parse.
48 49 50 |
# File 'lib/rltk/parser.rb', line 48 def result @result end |