class githubApiError(Exception):

    def __init__(self, status_code ):
        if status_code==403:
            message="Rate limit reached"
        else:
            message = f"HTTP Status Code was: {status_code}."

        super().__init__("A GitHub API Error Occurred: " + message) 