Exceptions and warnings

Exceptions

Module for defining exceptions.

exception pyrigi.exception.LoopError(msg='The graph needs to be loop-free.', *args, **kwargs)[source]

Bases: ValueError

Error raised when a graph is not loop-free.

Parameters:

msg (str)

exception pyrigi.exception.NotSupportedValueError(wrong_param, parameter_name, method=None, msg=None, *args, **kwargs)[source]

Bases: ValueError

Error raised when an input value is not supported.

Parameters:

Warnings

Module for defining warnings.

exception pyrigi.warning.NumericalAlgorithmWarning(method, msg=None, class_off=None, *args)[source]

Bases: UserWarning

Warning raised when a numerical algorithm is called, whose output cannot be guaranteed to be correct.

Parameters:
exception pyrigi.warning.RandomizedAlgorithmWarning(method, msg=None, explicit_call=None, class_off=None, *args)[source]

Bases: UserWarning

Warning raised when randomized algorithm is used without explicit call.

Parameters: