djblets.extensions.errors¶
Error classes for extensions.
- exception EnablingExtensionError(message: str, load_error: Optional[str] = None, needs_reload: bool = False)¶
Bases:
Exception
An extension could not be enabled.
- __init__(message: str, load_error: Optional[str] = None, needs_reload: bool = False) None ¶
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 InstallExtensionError(message: str, load_error: Optional[str] = None)¶
Bases:
Exception
An extension could not be installed.
- exception InstallExtensionMediaError(message: str, load_error: Optional[str] = None)¶
Bases:
InstallExtensionError
An error indicating that extension media files could not be installed.
- __annotations__ = {}¶