Class DownloadFailureException

  • All Implemented Interfaces:
    Serializable

    public final class DownloadFailureException
    extends RuntimeException
    Represents a download failure exception, thrown when the requested resource returns a non-20x HTTP code.
    See Also:
    Serialized Form
    • Constructor Detail

      • DownloadFailureException

        public DownloadFailureException​(int statusCode,
                                        String statusLine)
        Creates a new instance.
        Parameters:
        statusCode - HTTP code
        statusLine - status line
    • Method Detail

      • getHttpCode

        public int getHttpCode()
        Returns:
        the HTTP status code.
      • getStatusLine

        public String getStatusLine()
        Returns:
        the HTTP status line.