"""Custom exceptions for aiogithubapi.""" class GitHubException(Exception): """ This is raised when unknown exceptions occur. And it's used as a base for all other exceptions so if you want to catch all GitHub related errors you should catch this base exception. """ class GitHubConnectionException(GitHubException): """This is raised when there is a connection issue with GitHub.""" class GitHubRatelimitException(GitHubException): """This is raised when the ratelimit is reached.""" class GitHubNotFoundException(GitHubException): """This is raised when the requested resource is not found.""" class GitHubPayloadException(GitHubException): """This is raised when the payload is invalid.""" class GitHubGraphQLException(GitHubException): """This is raised when the response from GraphQL calls have errors.""" class GitHubPermissionException(GitHubException): """This is raised when the user has no permission to do the requested resource.""" class GitHubNotModifiedException(GitHubException): """This is raised when the providede ETag matches and the content has not been modified.""" class GitHubAuthenticationException(GitHubException): """This is raised when we receive an authentication issue."""