reviewboard.hostingsvcs.errors¶
- exception HostingServiceError(message, http_code=None, help_link=None, help_link_text=None)[source]¶
Base class for errors related to a hosting service.
- exception HostingServiceAPIError(msg=None, http_code=None, rsp=None)[source]¶
An API error from a hosting service.
This represents an error from the hosting service’s API. It contains the error message, HTTP code, and the parsed response payload.
HostingServiceAPIError instances can be further turned into other error types, or raised directly, if the error message is suitable for display.
- exception RepositoryError(message, http_code=None, help_link=None, help_link_text=None)[source]¶
An error validating, configuring or using a repository.
- exception TwoFactorAuthCodeRequiredError(message, http_code=None, help_link=None, help_link_text=None)[source]¶
Response from a service indicating a two-factor auth code is required.
Some services will indicate, after an authorization attempt, that a two-factor authorization code must be provided to complete authorization. Services can raise this error, along with a helpful message, to inform the user and the repository form of this.