text_lint.exceptions.schema.SchemaError
- class text_lint.exceptions.schema.SchemaError(description: str, schema: Schema, operation_definition: Dict[str, Any] | None = None)[source]
Bases:
SchemaExceptionBaseRaised when a misconfiguration is found in the schema.
- __init__(description: str, schema: Schema, operation_definition: Dict[str, Any] | None = None) None[source]
Initialize SchemaError exceptions.
- Parameters:
description (str) – A description of the exception.
schema (Schema) – The schema instance that encountered the exception.
operation_definition (Dict[str, Any] | None) – The configuration related to this exception.
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.