luminal.errors.threads

Module Contents

exception NoThreadsFoundError(*args)

Bases: Exception

Error raised when no threads are available to run.

Examples

>>> raise NoThreadsFoundError("No threads available to run.")
Parameters:

args (object) –

exception ThreadManagerAlreadyRunningError(*args)

Bases: Exception

Error raised when a thread manager is already running.

Examples

>>> raise ThreadManagerAlreadyRunningError("Thread manager already running!")
Parameters:

args (object) –

exception ThreadsAlreadyRunningError(*args)

Bases: Exception

Error raised when threads are already running.

Examples:

>>> raise ThreadsAlreadyRunningError("Threads are already running!")
Parameters:

args (object) –

exception ThreadLimitReachedError(*args)

Bases: Exception

Error raised when the maximum number of threads has been reached.

Examples

>>> raise ThreadLimitReachedError("Thread limit has been reached!")
Parameters:

args (object) –