craft_grammar.errors module¶
Errors for Craft Grammar.
- exception craft_grammar.errors.CraftGrammarError¶
Bases:
ExceptionBase class error for craft-grammar.
- exception craft_grammar.errors.ForStatementSyntaxError(for_statement: str, *, message: str | None = None)¶
Bases:
GrammarSyntaxErrorError raised on ‘for’ statement syntax errors.
- exception craft_grammar.errors.GrammarSyntaxError(message: str)¶
Bases:
CraftGrammarErrorError raised on grammar syntax errors.
- exception craft_grammar.errors.OnStatementSyntaxError(on_statement: str, *, message: str | None = None)¶
Bases:
GrammarSyntaxErrorError raised on on statement syntax errors.
- exception craft_grammar.errors.PlatformNameError(*platforms: str)¶
Bases:
CraftGrammarErrorError raised if a platform name is invalid.
- exception craft_grammar.errors.ToStatementSyntaxError(to_statement: str, *, message: str | None = None)¶
Bases:
GrammarSyntaxErrorError raised on to statement syntax errors.
- exception craft_grammar.errors.UnknownArchitectureError(arch: str)¶
Bases:
CraftGrammarErrorError raised if on or to statement contains an unknown architecture name.
- exception craft_grammar.errors.UnknownPlatformNameError(platform: str)¶
Bases:
CraftGrammarErrorError raised if for statement contains an unknown platform name.
- exception craft_grammar.errors.UnsatisfiedStatementError(statement: str)¶
Bases:
CraftGrammarErrorError raised when a statement cannot be satisfied.