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

property job: Job | None

Job associated with the load/insert operation if available. May be None.

with_traceback(tb, /)

Set self.__traceback__ to tb and return self.