5.4.1. xgt.XgtError¶
- exception xgt.XgtError(msg: str, trace: str = '', job: Job | None = None)¶
Base exception class from which all other xgt exceptions inherit. It is raised in error cases that don’t have a specific xgt exception type.
- Parameters:
msg (str) – The error message.
trace (str) – A stack trace.
job (Job | None) – Job that caused the error.
- add_note(note, /)¶
Add a note to the exception
- with_traceback(tb, /)¶
Set self.__traceback__ to tb and return self.