This documentation covers Djblets 4.x.
You can select a version above or
view the latest documentation.
djblets.extensions.errors
Error classes for extensions.
-
exception EnablingExtensionError(message: str, load_error: Optional[str] = None, needs_reload: bool = False)[source]
Bases: Exception
An extension could not be enabled.
-
__init__(message: str, load_error: Optional[str] = None, needs_reload: bool = False) → None[source]
Initialize the error.
- Parameters:
message (str
) – The detailed error message.
load_error (str
, optional) – An exception from the attempt to enable the extension, or
other useful information to display to the user to help
diagnose the problem.
needs_reload (bool
, optional) – Whether fixing this error requires reloading the extension.
-
exception DisablingExtensionError[source]
Bases: Exception
An extension could not be disabled.
-
exception InstallExtensionError(message: str, load_error: Optional[str] = None)[source]
Bases: Exception
An extension could not be installed.
-
__init__(message: str, load_error: Optional[str] = None) → None[source]
Initialize the error.
- Parameters:
message (str
) – The detailed error message.
load_error (str
, optional) – An exception from the attempt to enable the extension, or
other useful information to display to the user to help
diagnose the problem.
-
exception InstallExtensionMediaError(message: str, load_error: Optional[str] = None)[source]
Bases: InstallExtensionError
An error indicating that extension media files could not be installed.
-
__annotations__ = {}
-
exception InvalidExtensionError(extension_id: str)[source]
Bases: Exception
An extension does not exist.
-
__init__(extension_id: str) → None[source]
Initialize the error.
- Parameters:
extension_id (str
) – The ID of the extension which could not be found.