In this section, are defined all non-standard errors that are raised by all submodules.
- class thcolor.errors.ColorExpressionSyntaxError(text, column=None, func=None)¶
An error has occurred while decoding a color expression.
Such an error can happen during parsing or evaluating.
- property column¶
Column of the expression at which the exception has occurred.
Noneif the error has occurred on an unknown column or on the whole exception.
- property func¶
Name of the function we were calling when the error occurred.
Either on arguments decoding or erroneous argument type or value. Is
Noneif the context is unknown or the error hasn’t occurred while calling a function or decoding its arguments.
- property text¶
Exception message, usually linked to the context.