Jump to >

reviewboard.scmtools.errors

exception SCMError(msg)[source]
exception ChangeSetError(msg)[source]
exception InvalidChangeNumberError[source]
exception ChangeNumberInUseError(review_request=None)[source]
exception EmptyChangeSetError(changenum)[source]
exception InvalidRevisionFormatError(path, revision, detail=None)[source]

Indicates that a revision isn’t in a recognizable format.

exception FileNotFoundError(path, revision=None, detail=None, base_commit_id=None, context=None)[source]

An error indicating a file was not found in a repository.

base_commit_id

The optional ID of the base commit the file and revision belonged to.

Type

unicode

context

Extra context used to help look up the file.

New in version 4.0.5.

Type

reviewboard.scmtools.core.FileLookupContext, optional

detail

Additional details for the error message.

Type

unicode

path

The path in the repository.

Type

unicode

revision

The revision in the repository.

Type

reviewboard.scmtools.core.Revision or unicode

exception RepositoryNotFoundError[source]

An error indicating that a given path is not a valid repository.

exception AuthenticationError(allowed_types=[], msg=None, user_key=None)[source]

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]

An error representing an unverified SSL certificate.

reviewboard.scmtools.certs.Certificate
The certificate this error pertains to.