Jump to >

reviewboard.scmtools.errors

exception SCMError(msg)[source]

Bases: exceptions.Exception

__init__(msg)[source]

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

exception ChangeSetError(msg)[source]

Bases: reviewboard.scmtools.errors.SCMError

exception InvalidChangeNumberError[source]

Bases: reviewboard.scmtools.errors.ChangeSetError

__init__()[source]

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

exception ChangeNumberInUseError(review_request=None)[source]

Bases: reviewboard.scmtools.errors.ChangeSetError

__init__(review_request=None)[source]

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

exception EmptyChangeSetError(changenum)[source]

Bases: reviewboard.scmtools.errors.ChangeSetError

__init__(changenum)[source]

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

exception InvalidRevisionFormatError(path, revision, detail=None)[source]

Bases: reviewboard.scmtools.errors.SCMError

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

__init__(path, revision, detail=None)[source]

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

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

Bases: reviewboard.scmtools.errors.SCMError

__init__(path, revision=None, detail=None, base_commit_id=None)[source]

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

exception RepositoryNotFoundError[source]

Bases: reviewboard.scmtools.errors.SCMError

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

__init__()[source]

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

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.

__init__(certificate)[source]

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