text_lint.exceptions.validators.ValidationFailure

class text_lint.exceptions.validators.ValidationFailure(description: str, detail: str, validator: ValidatorBase)[Quellcode]

Bases: ValidationExceptionBase

Raised when a validation operation fails.

__init__(description: str, detail: str, validator: ValidatorBase) None[Quellcode]

Initialize ValidationFailure exceptions.

Parameter:
  • description (str) – A description of the exception.

  • detail (str) – Details relating to the exception.

  • validator (ValidatorBase) – The validation operation that has failed.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.