Class RequestNotOkException

    • Constructor Detail

      • RequestNotOkException

        public RequestNotOkException​(String path,
                                     int statusCode,
                                     String msg)
        Response to request came back with non-2xx status code
        Parameters:
        path - URI path
        statusCode - status of repsonse
        msg - response body
      • RequestNotOkException

        public RequestNotOkException​(String path,
                                     int statusCode,
                                     String msg,
                                     Throwable cause)
        Response to request came back with non-2xx status code
        Parameters:
        path - URI path
        statusCode - status of repsonse
        msg - response body
        cause - exception cause
    • Method Detail

      • statusCode

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

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