exception documentation

class NoTransition(Exception, Generic[State, Input]): (source)

Constructor: NoTransition(state, symbol)

View In Hierarchy

A finite state machine in state has no transition for symbol.

Method __init__ Construct a NoTransition.
Instance Variable state See state init parameter.
Instance Variable symbol See symbol init parameter.
def __init__(self, state: State, symbol: Input): (source)

Construct a NoTransition.

Parameters
state:Statethe finite state machine's state at the time of the illegal transition.
symbol:Inputthe input symbol for which no transition exists.

See state init parameter.

See symbol init parameter.