reviewboard.scmtools.errors¶
-
exception
SCMError
(msg)[source]¶ Bases:
exceptions.Exception
-
exception
InvalidRevisionFormatError
(path, revision, detail=None)[source]¶ Bases:
reviewboard.scmtools.errors.SCMError
Indicates that a revision isn’t in a recognizable format.
-
exception
RepositoryNotFoundError
[source]¶ Bases:
reviewboard.scmtools.errors.SCMError
An error indicating that a given path is not a valid repository.
-
exception
AuthenticationError
(allowed_types=[], msg=None, user_key=None)[source]¶ Bases:
reviewboard.ssh.errors.SSHAuthenticationError
,reviewboard.scmtools.errors.SCMError
An error representing a failed authentication for a repository.
This takes a list of authentication types that are allowed. These are dependant on the backend, but are loosely based on SSH authentication mechanisms. Primarily, we respond to “password” and “publickey”.
This may also take the user’s SSH key that was tried, if any.
-
exception
UnverifiedCertificateError
(certificate)[source]¶ Bases:
reviewboard.scmtools.errors.SCMError
An error representing an unverified SSL certificate.
-
reviewboard.scmtools.certs.
Certificate
¶
-
The certificate this error pertains to.
-
__init__
(certificate)[source]¶ Initialize the error message.
Parameters: certificate (reviewboard.scmtools.certs.Certificate) – The certificate this error pertains to.
-