|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sas.hls.client.exception.HttpException
public class HttpException
Exception thrown when there was an HTTP or communications error between the client and server. See the exception message for more specific information (if available).
Constructor Summary | |
---|---|
HttpException(int statusCode,
String message)
Constructs an HttpException with the specified HTTP status code and message. |
|
HttpException(int statusCode,
String message,
Throwable cause)
Constructs an HttpException with the specified HTTP status code, message and cause. |
|
HttpException(String message)
Constructs an HttpException with the specified message. |
|
HttpException(String message,
Throwable cause)
Constructs an HttpException with the specified message and cause. |
Method Summary | |
---|---|
int |
getStatusCode()
Gets the HTTP status code. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HttpException(String message)
HttpException
with the specified message.
message
- the detail message (which is saved for later retrieval by the Throwable.getMessage()
method).public HttpException(int statusCode, String message)
HttpException
with the specified HTTP status code and message.
statusCode
- the HTTP status codemessage
- the detail message (which is saved for later retrieval by the Throwable.getMessage()
method).public HttpException(int statusCode, String message, Throwable cause)
HttpException
with the specified HTTP status code, message and cause.
statusCode
- the HTTP status codemessage
- the detail message (which is saved for later retrieval by the Throwable.getMessage()
method).cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A null
value is permitted, and indicates that the cause is nonexistent or unknown.)public HttpException(String message, Throwable cause)
HttpException
with the specified message and cause.
message
- the detail message (which is saved for later retrieval by the Throwable.getMessage()
method).cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A null
value is permitted, and indicates that the cause is nonexistent or unknown.)Method Detail |
---|
public int getStatusCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |