Exceptions from aGrUM
Exception in pyAgrum
All the exception classes inherit pyagrum.GumException’s functions.
- exception pyagrum.GumException(*args)
- add_note(note, /)
Add a note to the exception
- args
- errorCallStack()
- Returns:
the error call stack
- Return type:
str
- errorContent()
- Returns:
the error content
- Return type:
str
- errorType()
- Returns:
the error type
- Return type:
str
- what()
- Returns:
the error message
- Return type:
str
- with_traceback(tb, /)
Set self.__traceback__ to tb and return self.
List of pyAgrum’s exceptions
- exception pyagrum.DefaultInLabel(*args)
- exception pyagrum.DuplicateElement(*args)
- exception pyagrum.DuplicateLabel(*args)
- exception pyagrum.FatalError(*args)
- exception pyagrum.FormatNotFound(*args)
- exception pyagrum.GraphError(*args)
- exception pyagrum.InvalidArc(*args)
- exception pyagrum.InvalidArgument(*args)
- exception pyagrum.InvalidArgumentsNumber(*args)
- exception pyagrum.InvalidDirectedCycle(*args)
- exception pyagrum.InvalidEdge(*args)
- exception pyagrum.InvalidNode(*args)
- exception pyagrum.NoChild(*args)
- exception pyagrum.NoNeighbour(*args)
- exception pyagrum.NoParent(*args)
- exception pyagrum.NotFound(*args)
- exception pyagrum.NullElement(*args)
- exception pyagrum.OperationNotAllowed(*args)
- exception pyagrum.OutOfBounds(*args)
- exception pyagrum.ArgumentError(*args)
- exception pyagrum.SizeError(*args)
- exception pyagrum.UndefinedElement(*args)
- exception pyagrum.UndefinedIteratorKey(*args)
- exception pyagrum.UndefinedIteratorValue(*args)
- exception pyagrum.UnknownLabelInDatabase(*args)
- exception pyagrum.DatabaseError(*args)
- exception pyagrum.CPTError(*args)
- exception pyagrum.HedgeException(*args)
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
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).