text_lint.exceptions.assertions.AssertionCaptureGroupNotFound
- class text_lint.exceptions.assertions.AssertionCaptureGroupNotFound(assertion: AssertionBase, capture_group: int)[source]
Bases:
AssertionExceptionBaseRaised when an assertion references a non-existent capture group.
- __init__(assertion: AssertionBase, capture_group: int) None[source]
Initialize AssertionCaptureGroupNotFound exceptions.
- Parameters:
assertion (AssertionBase) – The assertion operation referencing the capture group.
capture_group (int) – The referenced regex capture group number.
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.