Jump to >

This documentation covers the in-development release of Djblets. You can see the latest stable docs or all previous versions.


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]

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

__repr__() <==> repr(x)[source]
with_overrides(msg=None, headers=None)[source]

Overrides the default message and/or headers for an error.


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.