Skip to content

Exceptions from aGrUM

All the exception classes inherit pyagrum.GumException’s functions.

Add a note to the exception

  • Returns: the error call stack
  • Return type: str
  • Returns: the error content
  • Return type: str
  • Returns: the error type
  • Return type: str
  • Returns: the error message
  • Return type: str

Set self._traceback_ to tb and return self.

exception pyagrum.InvalidArgumentsNumber(*args)

Section titled “exception pyagrum.InvalidArgumentsNumber(*args)”

exception pyagrum.InvalidDirectedCycle(*args)

Section titled “exception pyagrum.InvalidDirectedCycle(*args)”

exception pyagrum.OperationNotAllowed(*args)

Section titled “exception pyagrum.OperationNotAllowed(*args)”

exception pyagrum.UndefinedIteratorKey(*args)

Section titled “exception pyagrum.UndefinedIteratorKey(*args)”

exception pyagrum.UndefinedIteratorValue(*args)

Section titled “exception pyagrum.UndefinedIteratorValue(*args)”

exception pyagrum.UnknownLabelInDatabase(*args)

Section titled “exception pyagrum.UnknownLabelInDatabase(*args)”

exception pyagrum.FactoryInvalidState(*args)

Section titled “exception pyagrum.FactoryInvalidState(*args)”

exception pyagrum.WrongClassElement(*args)

Section titled “exception pyagrum.WrongClassElement(*args)”

exception pyagrum.InvalidPartiallyDirectedCycle(*args)

Section titled “exception pyagrum.InvalidPartiallyDirectedCycle(*args)”

exception pyagrum.IncompatibleScorePrior(*args)

Section titled “exception pyagrum.IncompatibleScorePrior(*args)”

exception pyagrum.NotImplementedYet(*args)

Section titled “exception pyagrum.NotImplementedYet(*args)”

exception pyagrum.ScheduleMultiDimError(*args)

Section titled “exception pyagrum.ScheduleMultiDimError(*args)”

exception pyagrum.ScheduleOperationError(*args)

Section titled “exception pyagrum.ScheduleOperationError(*args)”

exception pyagrum.AbstractScheduleMultiDim(*args)

Section titled “exception pyagrum.AbstractScheduleMultiDim(*args)”

exception pyagrum.DuplicateScheduleMultiDim(*args)

Section titled “exception pyagrum.DuplicateScheduleMultiDim(*args)”

exception pyagrum.IncompatibleEvidence(*args)

Section titled “exception pyagrum.IncompatibleEvidence(*args)”

exception pyagrum.PossiblyIncompatibleScorePrior(*args)

Section titled “exception pyagrum.PossiblyIncompatibleScorePrior(*args)”

exception pyagrum.UnavailableScheduleOperation(*args)

Section titled “exception pyagrum.UnavailableScheduleOperation(*args)”

exception pyagrum.UnexecutedScheduleOperation(*args)

Section titled “exception pyagrum.UnexecutedScheduleOperation(*args)”

exception pyagrum.UnknownScheduleMultiDim(*args)

Section titled “exception pyagrum.UnknownScheduleMultiDim(*args)”

exception pyagrum.UnknownScheduleOperation(*args)

Section titled “exception pyagrum.UnknownScheduleOperation(*args)”

A syntax error (for instance in a file read by pyAgrum) is raised as the Python builtin SyntaxError, with the name of the file, the line and the column of the error.

  • pyagrum.IOError is deprecated after 3.2.1: use pyagrum.GumIOError (IOError shadowed the Python builtin).
  • pyagrum.SyntaxError is deprecated after 3.2.1: use the builtin SyntaxError (the class pyagrum.SyntaxError was never raised).