Class DownloadFailureException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.googlecode.download.maven.plugin.internal.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 Summary
Constructors Constructor Description DownloadFailureException(int statusCode, String statusLine)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHttpCode()StringgetMessage()StringgetStatusLine()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DownloadFailureException
public DownloadFailureException(int statusCode, String statusLine)Creates a new instance.- Parameters:
statusCode- HTTP codestatusLine- status line
-
-
Method Detail
-
getHttpCode
public int getHttpCode()
- Returns:
- the HTTP status code.
-
getStatusLine
public String getStatusLine()
- Returns:
- the HTTP status line.
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-