repo_helper_github.exceptions
¶
Custom exception types.
New in version 0.7.0.
Exceptions:
Base class for exceptions raised by |
|
|
Exception raised when a repository cannot be created. |
|
Exception raised when a repository does not exist. |
|
Exception raised when a branch does not exist. |
|
Raised when there is a problem with the username configured in |
|
Raised when there is a problem with the organization configured in |
Classes:
|
|
-
exception
GitHubException
[source]¶ Bases:
ValueError
Base class for exceptions raised by
repo-helper-github
.
-
exception
ErrorCreatingRepository
(username, repository, org=False)[source]¶ Bases:
repo_helper_github.exceptions.GitHubException
Exception raised when a repository cannot be created.
- Parameters
-
exception
NoSuchRepository
(username, repository, org=False)[source]¶ Bases:
repo_helper_github.exceptions.GitHubException
Exception raised when a repository does not exist.
- Parameters
-
exception
NoSuchBranch
(username, repository, branch)[source]¶ Bases:
repo_helper_github.exceptions.GitHubException
Exception raised when a branch does not exist.
- Parameters
-
exception
BadUsername
(msg, username)[source]¶ Bases:
repo_helper_github.exceptions.GitHubException
Raised when there is a problem with the username configured in
repo_helper.yml
.- Parameters
username (
str
)
-
exception
OrganizationError
(msg, organization)[source]¶ Bases:
repo_helper_github.exceptions.GitHubException
Raised when there is a problem with the organization configured in
repo_helper.yml
.- Parameters
organization (
str
)
-
class
TracebackHandler
(exception=Abort())[source]¶ Bases:
TracebackHandler
consolekit.tracebacks.TracebackHandler
which handles subclasses ofGitHubException
.