luminal.errors.cleanup

Module Contents

exception FinalizerNotImplementedError(*args)

Bases: Exception

Error raised when a photon does not implement the finalize() method.

Examples

>>> raise FinalizerNotImplementedError("Finalize method not implemented in photon!")
Parameters:

args (object) –

exception PhotonNotInitializedError(*args)

Bases: Exception

Error raised when a photon is not initialized before usage.

Examples

>>> raise PhotonNotInitializedError("Photon has not been initialized!")
Parameters:

args (object) –

exception PhotonNotFoundError(*args)

Bases: Exception

Error raised when a photon cannot be found.

Examples

>>> raise PhotonNotFoundError("Photon could not be found!")
Parameters:

args (object) –