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:
ValueErrorBase class for exceptions raised by
repo-helper-github.
-
exception
ErrorCreatingRepository(username, repository, org=False)[source]¶ Bases:
repo_helper_github.exceptions.GitHubExceptionException raised when a repository cannot be created.
- Parameters
-
exception
NoSuchRepository(username, repository, org=False)[source]¶ Bases:
repo_helper_github.exceptions.GitHubExceptionException raised when a repository does not exist.
- Parameters
-
exception
NoSuchBranch(username, repository, branch)[source]¶ Bases:
repo_helper_github.exceptions.GitHubExceptionException raised when a branch does not exist.
- Parameters
-
exception
BadUsername(msg, username)[source]¶ Bases:
repo_helper_github.exceptions.GitHubExceptionRaised when there is a problem with the username configured in
repo_helper.yml.
-
exception
OrganizationError(msg, organization)[source]¶ Bases:
repo_helper_github.exceptions.GitHubExceptionRaised when there is a problem with the organization configured in
repo_helper.yml.
-
class
TracebackHandler(exception=Abort())[source]¶ Bases:
TracebackHandlerconsolekit.tracebacks.TracebackHandlerwhich handles subclasses ofGitHubException.