Exceptions from aGrUM
Exception in pyAgrum
Section titled “Exception in pyAgrum”All the exception classes inherit pyagrum.GumException’s functions.
exception pyagrum.GumException(*args)
Section titled “exception pyagrum.GumException(*args)”add_note(note,)
Section titled “add_note(note,)”Add a note to the exception
errorCallStack()
Section titled “errorCallStack()”- Returns: the error call stack
- Return type:
str
errorContent()
Section titled “errorContent()”- Returns: the error content
- Return type:
str
errorType()
Section titled “errorType()”- Returns: the error type
- Return type:
str
what()
Section titled “what()”- Returns: the error message
- Return type:
str
with_traceback(tb,)
Section titled “with_traceback(tb,)”Set self._traceback_ to tb and return self.
List of pyAgrum’s exceptions
Section titled “List of pyAgrum’s exceptions”exception pyagrum.DefaultInLabel(*args)
Section titled “exception pyagrum.DefaultInLabel(*args)”exception pyagrum.DuplicateElement(*args)
Section titled “exception pyagrum.DuplicateElement(*args)”exception pyagrum.DuplicateLabel(*args)
Section titled “exception pyagrum.DuplicateLabel(*args)”exception pyagrum.FatalError(*args)
Section titled “exception pyagrum.FatalError(*args)”exception pyagrum.FormatNotFound(*args)
Section titled “exception pyagrum.FormatNotFound(*args)”exception pyagrum.GraphError(*args)
Section titled “exception pyagrum.GraphError(*args)”exception pyagrum.GumIOError(*args)
Section titled “exception pyagrum.GumIOError(*args)”exception pyagrum.InvalidArc(*args)
Section titled “exception pyagrum.InvalidArc(*args)”exception pyagrum.InvalidArgument(*args)
Section titled “exception pyagrum.InvalidArgument(*args)”exception pyagrum.InvalidArgumentsNumber(*args)
Section titled “exception pyagrum.InvalidArgumentsNumber(*args)”exception pyagrum.InvalidDirectedCycle(*args)
Section titled “exception pyagrum.InvalidDirectedCycle(*args)”exception pyagrum.InvalidEdge(*args)
Section titled “exception pyagrum.InvalidEdge(*args)”exception pyagrum.InvalidNode(*args)
Section titled “exception pyagrum.InvalidNode(*args)”exception pyagrum.NoChild(*args)
Section titled “exception pyagrum.NoChild(*args)”exception pyagrum.NoNeighbour(*args)
Section titled “exception pyagrum.NoNeighbour(*args)”exception pyagrum.NoParent(*args)
Section titled “exception pyagrum.NoParent(*args)”exception pyagrum.NotFound(*args)
Section titled “exception pyagrum.NotFound(*args)”exception pyagrum.NullElement(*args)
Section titled “exception pyagrum.NullElement(*args)”exception pyagrum.OperationNotAllowed(*args)
Section titled “exception pyagrum.OperationNotAllowed(*args)”exception pyagrum.OutOfBounds(*args)
Section titled “exception pyagrum.OutOfBounds(*args)”exception pyagrum.ArgumentError(*args)
Section titled “exception pyagrum.ArgumentError(*args)”exception pyagrum.SizeError(*args)
Section titled “exception pyagrum.SizeError(*args)”exception pyagrum.UndefinedElement(*args)
Section titled “exception pyagrum.UndefinedElement(*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.DatabaseError(*args)
Section titled “exception pyagrum.DatabaseError(*args)”exception pyagrum.CPTError(*args)
Section titled “exception pyagrum.CPTError(*args)”exception pyagrum.GumTypeError(*args)
Section titled “exception pyagrum.GumTypeError(*args)”exception pyagrum.FactoryError(*args)
Section titled “exception pyagrum.FactoryError(*args)”exception pyagrum.FactoryInvalidState(*args)
Section titled “exception pyagrum.FactoryInvalidState(*args)”exception pyagrum.WrongClassElement(*args)
Section titled “exception pyagrum.WrongClassElement(*args)”exception pyagrum.PRMTypeError(*args)
Section titled “exception pyagrum.PRMTypeError(*args)”exception pyagrum.IteratorError(*args)
Section titled “exception pyagrum.IteratorError(*args)”exception pyagrum.InvalidPartiallyDirectedCycle(*args)
Section titled “exception pyagrum.InvalidPartiallyDirectedCycle(*args)”exception pyagrum.LearningError(*args)
Section titled “exception pyagrum.LearningError(*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.HedgeException(*args)
Section titled “exception pyagrum.HedgeException(*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)”Syntax errors
Section titled “Syntax errors”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.
Deprecated names
Section titled “Deprecated names”pyagrum.IOErroris deprecated after 3.2.1: usepyagrum.GumIOError(IOErrorshadowed the Python builtin).pyagrum.SyntaxErroris deprecated after 3.2.1: use the builtinSyntaxError(the classpyagrum.SyntaxErrorwas never raised).