public class HttpException extends RuntimeException
Modifier | Constructor and Description |
---|---|
protected |
HttpException(int responseCode)
throw a http Exception with the given responseCode
|
protected |
HttpException(int responseCode,
String responseMessage,
URL baseURL)
throw a http Exception with the given responseCode and Message and base url
|
protected |
HttpException(int responseCode,
String responseMessage,
URL baseURL,
Throwable cause)
throw a http Exception with the given responseCode and Message, base url and cause
|
protected |
HttpException(int responseCode,
Throwable cause)
throw a http Exception with the given responseCode and cause
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
get the cause (if any)
|
String |
getMessage()
get the Message for the http Exception
|
int |
getResponseCode()
get the response Code of this http Exception
|
String |
getResponseMessage()
get the response Message of this http Exception
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected HttpException(int responseCode)
responseCode
- protected HttpException(int responseCode, Throwable cause)
responseCode
- cause
- protected HttpException(int responseCode, String responseMessage, URL baseURL)
responseCode
- responseMessage
- baseURL
- public String getMessage()
getMessage
in class Throwable
public int getResponseCode()
public String getResponseMessage()
Copyright © 2012. All Rights Reserved.