public class DownloadException extends RhnRuntimeException
| Constructor and Description |
|---|
DownloadException(java.lang.String urlIn,
java.lang.String contentIn,
int errorCodeIn)
Raised by the DownloadUtil class
when an error occurs while downloading contentst from an
http url
|
DownloadException(java.lang.String msg,
java.lang.Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent()
The contents of the error stream
|
int |
getErrorCode()
the error response code
matches the codes from HttpURLConnection
|
java.lang.String |
getUrl()
The Download Url where the error came from ..
|
public DownloadException(java.lang.String msg,
java.lang.Throwable t)
msg - the error messaget - the throwable exceptionpublic DownloadException(java.lang.String urlIn,
java.lang.String contentIn,
int errorCodeIn)
urlIn - the http url where the attempt was madecontentIn - the contents of the error streamerrorCodeIn - the response codepublic int getErrorCode()
public java.lang.String getUrl()
public java.lang.String getContent()