text_lint.exceptions.results.ResultDoesNotExist

class text_lint.exceptions.results.ResultDoesNotExist(lookup_expression: LookupExpression, requesting_operation_name: str)[Quellcode]

Bases: ResultExceptionBase

Raised when a request is made for a non-existent result.

__init__(lookup_expression: LookupExpression, requesting_operation_name: str) None[Quellcode]

Initialize ResultDoesNotExist exceptions.

Parameter:
  • lookup_expression (LookupExpression) – The instance referencing this result.

  • requesting_operation_name (str) – The operation performing this lookup.

with_traceback()

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