Exception: Mealy::UnexpectedTokenError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mealy.rb

Overview

Error indicating that there is no transition from the current state with the token read.

Instance Method Summary collapse

Constructor Details

#initialize(state, on) ⇒ UnexpectedTokenError

Returns a new instance of UnexpectedTokenError.


12
13
14
# File 'lib/mealy.rb', line 12

def initialize(state, on)
  super("FSM error #{self.class} in state #{state.inspect} reading #{on}")
end