Package org.somda.sdc.dpws.http
Class HttpException
-
- All Implemented Interfaces:
-
java.io.Serializable
public class HttpException extends Exception
Exception to convey HTTP status codes.
-
-
Field Summary
Fields Modifier and Type Field Description public final intstatusCodepublic Throwablecausepublic Array<StackTraceElement>stackTrace
-
Constructor Summary
Constructors Constructor Description HttpException(int statusCode)Creates an exception with an HTTP status code and empty message. HttpException(int statusCode, String message)Creates an exception with an HTTP status code and a message.
-
Method Summary
Modifier and Type Method Description intgetStatusCode()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HttpException
HttpException(int statusCode)
Creates an exception with an HTTP status code and empty message.- Parameters:
statusCode- the status code to set.
-
HttpException
HttpException(int statusCode, String message)
Creates an exception with an HTTP status code and a message.- Parameters:
statusCode- the status code to set.message- the message that can be passed to an HTTP content body.
-
-
Method Detail
-
getStatusCode
int getStatusCode()
-
-
-
-