Jump to >

djblets.extensions.errors

exception EnablingExtensionError(message, load_error=None, needs_reload=False)[source]

Bases: exceptions.Exception

An extension could not be enabled.

__init__(message, load_error=None, needs_reload=False)[source]

Initialize the error.

Parameters:
  • message (unicode) – The detailed error message.
  • load_error (unicode, 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: exceptions.Exception

An extension could not be disabled.

exception InstallExtensionError(message, load_error=None)[source]

Bases: exceptions.Exception

An extension could not be installed.

__init__(message, load_error=None)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

exception InstallExtensionMediaError(message, load_error=None)[source]

Bases: djblets.extensions.errors.InstallExtensionError

An error indicating that extension media files could not be installed.

exception InvalidExtensionError(extension_id)[source]

Bases: exceptions.Exception

An extension does not exist.

__init__(extension_id)[source]

x.__init__(…) initializes x; see help(type(x)) for signature