Exceptions from aGrUM

Exception in pyAgrum

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

exception pyAgrum.GumException(*args)
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()
Return type:

str

with_traceback()

Exception.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.IOError(*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.SyntaxError(*args)
col()
Returns:

the indice of the colonne of the error

Return type:

int

filename()
Return type:

str

line()
Returns:

the indice of the line of the error

Return type:

int

exception pyAgrum.UndefinedElement(*args)
exception pyAgrum.UndefinedIteratorKey(*args)
exception pyAgrum.UndefinedIteratorValue(*args)
exception pyAgrum.UnknownLabelInDatabase(*args)
exception pyAgrum.DatabaseError(*args)
exception pyAgrum.CPTError(*args)