This documentation covers Djblets 0.9.
You can select a version above or
view the latest documentation.
djblets.webapi.errors
-
class
WebAPIError
(code, msg, http_status=400, headers={})[source]
Bases: object
An API error, containing an error code and human readable message.
-
__init__
(code, msg, http_status=400, headers={})[source]
-
__repr__
()[source]
-
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]
Bases: exceptions.Exception
An error generating a Web API token.