Package com.sas.lsaf.client
Class HttpException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.sas.lsaf.core.AbstractRuntimeException
-
- com.sas.lsaf.client.HttpException
-
- All Implemented Interfaces:
java.io.Serializable
public class HttpException extends AbstractRuntimeException
Thrown when there was an HTTP or communications error between the client and server. See the exception message for more specific information (if available).- Since:
- 1.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpException(int statusCode, java.lang.String message)
Constructs anHttpException
with the specified HTTP status code and message.HttpException(int statusCode, java.lang.String message, java.lang.Throwable cause)
Constructs anHttpException
with the specified HTTP status code, message and cause.HttpException(java.lang.String message)
Constructs anHttpException
with the specified message.HttpException(java.lang.String message, java.lang.Throwable cause)
Constructs anHttpException
with the specified message and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getStatusCode()
Return the HTTP status code associated with this exception, if one exists.-
Methods inherited from class com.sas.lsaf.core.AbstractRuntimeException
getMessage, getRootCause
-
-
-
-
Constructor Detail
-
HttpException
public HttpException(java.lang.String message)
Constructs anHttpException
with the specified message.- Parameters:
message
- the detail message (which is saved for later retrieval by theAbstractRuntimeException.getMessage()
method).
-
HttpException
public HttpException(int statusCode, java.lang.String message)
Constructs anHttpException
with the specified HTTP status code and message.- Parameters:
statusCode
- the HTTP status codemessage
- the detail message (which is saved for later retrieval by theAbstractRuntimeException.getMessage()
method).
-
HttpException
public HttpException(int statusCode, java.lang.String message, java.lang.Throwable cause)
Constructs anHttpException
with the specified HTTP status code, message and cause.- Parameters:
statusCode
- the HTTP status codemessage
- the detail message (which is saved for later retrieval by theAbstractRuntimeException.getMessage()
method).cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
HttpException
public HttpException(java.lang.String message, java.lang.Throwable cause)
Constructs anHttpException
with the specified message and cause.- Parameters:
message
- the detail message (which is saved for later retrieval by theAbstractRuntimeException.getMessage()
method).cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-