Skip to content

Base exception classes

Exception classes shared by all automata.

AutomatonException

Bases: Exception

The base class for all automaton-related errors.

DiagramException

Bases: AutomatonException

The diagram cannot be produced

EmptyLanguageException

Bases: AutomatonException

The operation cannot be performed because the language is empty

FinalStateError

Bases: AutomatonException

A final state fails to meet some required condition.

InfiniteLanguageException

Bases: AutomatonException

The operation cannot be performed because the language is infinite

InitialStateError

Bases: AutomatonException

The initial state fails to meet some required condition.

InvalidRegexError

Bases: RegexException

Regular expression is invalid

InvalidStateError

Bases: AutomatonException

A state is not a valid state for this automaton.

InvalidSymbolError

Bases: AutomatonException

A symbol is not a valid symbol for this automaton.

LexerError dataclass

Bases: RegexException

An exception raised for issues in lexing

MissingStateError

Bases: AutomatonException

A state is missing from the automaton definition.

MissingSymbolError

Bases: AutomatonException

A symbol is missing from the automaton definition.

RegexException

Bases: Exception

The base class for all regular expression related errors

RejectionException

Bases: AutomatonException

The input was rejected by the automaton.

SymbolMismatchError

Bases: AutomatonException

The input symbols between the given automata do not match