text_lint.exceptions.schema.SchemaError

class text_lint.exceptions.schema.SchemaError(description: str, schema: Schema, operation_definition: Dict[str, Any] | None = None)[Quellcode]

Bases: SchemaExceptionBase

Raised when a misconfiguration is found in the schema.

__init__(description: str, schema: Schema, operation_definition: Dict[str, Any] | None = None) None[Quellcode]

Initialize SchemaError exceptions.

Parameter:
  • 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.