Source code for saltext.github.utils.gh.exceptions

"""
Exceptions raised by the GitHub API helper modules.
"""

from salt.exceptions import CommandExecutionError


[docs] class GitHubApiError(CommandExecutionError): """ The GitHub API returned an error response. status HTTP status code of the response, if available. data Decoded response body, if available. """ def __init__(self, message, *, status=None, data=None): super().__init__(message) self.status = status self.data = data
[docs] class GitHubNotFoundError(GitHubApiError): """ A requested GitHub resource does not exist. """