Exceptions

This document contains every exceptions that Socon can raise.

Socon core exceptions

Socon core exception classes are defined in socon.core.exceptions.

ImproperlyConfigured

exception ImproperlyConfigured[source]

The ImproperlyConfigured exception is raised when Socon is somehow improperly configured – for example, if a value in settings.py is incorrect or unparseable.

RegistryNotReady

exception RegistryNotReady[source]

This exception is raised when attempting to use a config registry when it hasn’t been populated yet.

CommandNotFound

exception CommandNotFound[source]

The CommandNotFound is raised when the command manager cannot find the command that needs to be run.

ManagerNotHooked

exception ManagerNotHooked[source]

The ManagerNotHooked is raised when we try to a access a hook in a manager that does not contain any hooks.

ManagerNotFound

exception ManagerNotFound[source]

The ManagerNotFound is raised by ManagerRegistry.get_manager() if the manager does not exist.

HookNotFound

exception HookNotFound[source]

The HookNotFound is raised by BaseManager.find_hooks_impl() when the hook is not found in any registry configurations.