mitk.Exception#

exception mitk.Exception#

Bases: Exception

Exception raised by MITK C++ code.

Subclass of Python’s built-in Exception. Mirrors the C++ mitk::Exception type and carries the message produced by the underlying MITK macro (e.g. mitkThrow()).

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.