text_lint.exceptions.assertions.AssertionLogicError

class text_lint.exceptions.assertions.AssertionLogicError(assertion: AssertionBase, hint: str, textfile: TextFileSequencer)[Quellcode]

Bases: AssertionExceptionBase

Raised when an assertion violates a known programming constraint.

__init__(assertion: AssertionBase, hint: str, textfile: TextFileSequencer) None[Quellcode]

Initialize AssertionLogicError exceptions.

Parameter:
  • assertion (AssertionBase) – The assertion operation with the logic error.

  • hint (str) – A description of the specific logic error encountered.

  • textfile (TextFileSequencer) – The textfile sequencer object being used.

with_traceback()

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