Class: Rbscmlex::UnexpectedTokenTypeError
- Inherits:
-
Error
- Object
- Error
- Rbscmlex::UnexpectedTokenTypeError
- Defined in:
- lib/rbscmlex/missing.rb
Overview
Indicates a token is not expected one.
Instance Method Summary collapse
-
#initialize(got, expected = nil) ⇒ UnexpectedTokenTypeError
constructor
A new instance of UnexpectedTokenTypeError.
Constructor Details
#initialize(got, expected = nil) ⇒ UnexpectedTokenTypeError
Returns a new instance of UnexpectedTokenTypeError.
14 15 16 |
# File 'lib/rbscmlex/missing.rb', line 14 def initialize(got, expected = nil) super(EMSG[:unexpected_token_type] % [got, expected]) end |