Class RequestNotOkException

    • Constructor Detail

      • RequestNotOkException

        public RequestNotOkException​(String method,
                                     String path,
                                     int statusCode,
                                     String msg,
                                     Map<String,​List<String>> headers)
        Response to request came back with non-2xx status code
        Parameters:
        method - HTTP method
        path - URI path
        statusCode - status of repsonse
        msg - response body
    • Method Detail

      • getRawMessage

        public String getRawMessage()
        Get the raw message from github
        Returns:
        msg
      • statusCode

        public int statusCode()
        Get the status code of the response
        Returns:
        status
      • method

        public String method()
        Get request HTTP method
        Returns:
        method
      • path

        public String path()
        Get request URI path
        Returns:
        path