Class: Rbscmlex::UnexpectedTokenTypeError

Inherits:
Error
  • Object
show all
Defined in:
lib/rbscmlex/missing.rb

Overview

Indicates a token is not expected one.

Instance Method Summary collapse

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