Exception: Lox::RunError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Lox::RunError
- Defined in:
- lib/loxby/helpers/errors.rb
Overview
A generic loxby error class raised when a runtime error is found.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token, message) ⇒ RunError
constructor
A new instance of RunError.
Constructor Details
#initialize(token, message) ⇒ RunError
Returns a new instance of RunError.
13 14 15 16 |
# File 'lib/loxby/helpers/errors.rb', line 13 def initialize(token, ) super() @token = token end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
11 12 13 |
# File 'lib/loxby/helpers/errors.rb', line 11 def token @token end |