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