mustash.exc
– Exception definitions¶
- exception mustash.exc.MustashException(message: str, /)¶
Bases:
Exception
An error has occurred in a Mustash function.
- Parameters:
message (str)
- Return type:
None
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception mustash.exc.DropException¶
Bases:
MustashException
A document should be dropped.
- Return type:
None
- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception mustash.exc.PipelineFailureException(*, document: Document, processor: Processor, exception: Exception)¶
Bases:
MustashException
A pipeline has failed on a provided document.
This exception may be raised by
Pipeline.apply()
, to provide more context on the execution.- add_note()¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback()¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- document: Document¶
State of the document at exception time.