craft_grammar.errors module¶
Errors for Craft Grammar.
- exception craft_grammar.errors.CraftGrammarError¶
Bases:
Exception
Base class error for craft-grammar.
- exception craft_grammar.errors.GrammarSyntaxError(message: str)¶
Bases:
CraftGrammarError
Error raised on grammar syntax errors.
- exception craft_grammar.errors.OnStatementSyntaxError(on_statement: str, *, message: str | None = None)¶
Bases:
GrammarSyntaxError
Error raised on on statement syntax errors.
- exception craft_grammar.errors.ToStatementSyntaxError(to_statement: str, *, message: str | None = None)¶
Bases:
GrammarSyntaxError
Error raised on to statement syntax errors.
- exception craft_grammar.errors.UnsatisfiedStatementError(statement: str)¶
Bases:
CraftGrammarError
Error raised when a statement cannot be satisfied.