This documentation covers Djblets 2.x.
You can select a version above or
view the latest documentation.
djblets.webapi.errors
-
class WebAPIError(code, msg, http_status=400, headers={})[source]
An API error, containing an error code and human readable message.
-
with_overrides(msg=None, headers=None)[source]
Overrides the default message and/or headers for an error.
-
with_message(msg)[source]
Overrides the default message for a WebAPIError with something
more context specific.
Example:
return ENABLE_EXTENSION_FAILED.with_message(‘some error message’)
-
exception WebAPITokenGenerationError[source]
An error generating a Web API token.