com.novell.sentinel.client.http
Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.novell.sentinel.client.http.HttpException
- All Implemented Interfaces:
- Serializable
public class HttpException
- extends Exception
Exception class used to report errors from requests made via HttpRequestor.
- See Also:
- Serialized Form
Method Summary |
int |
getCode()
Get the HTTP Response code (if any) associated with this instance. |
String |
getMessage()
|
boolean |
isCodeSet()
Is an HTTP Response code set (lack of a code implies the error is other that an error reported
from the HTTP request. |
HttpException
public HttpException(String msg)
HttpException
public HttpException(String msg,
Throwable cause)
HttpException
public HttpException(Throwable cause)
HttpException
public HttpException(String msg,
int _code)
HttpException
public HttpException(String msg,
Throwable cause,
int _code)
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
isCodeSet
public boolean isCodeSet()
- Is an HTTP Response code set (lack of a code implies the error is other that an error reported
from the HTTP request.
getCode
public int getCode()
- Get the HTTP Response code (if any) associated with this instance.