uws
Class UWSException
java.lang.Object
java.lang.Throwable
java.lang.Exception
uws.UWSException
- All Implemented Interfaces:
- java.io.Serializable
public class UWSException
- extends java.lang.Exception
Any exception returned by a class of the UWS pattern may be associated with
an HTTP error code (like: 404, 303, 500) and a UWS error type.
- Version:
- 12/2010
- Author:
- Grégory Mantelet (CDS)
- See Also:
- Serialized Form
Constructor Summary |
UWSException(int httpError,
java.lang.String msg)
|
UWSException(int httpError,
java.lang.String msg,
ErrorType type)
|
UWSException(int httpError,
java.lang.Throwable t)
|
UWSException(int httpError,
java.lang.Throwable t,
ErrorType type)
|
UWSException(int httpError,
java.lang.Throwable t,
java.lang.String msg)
|
UWSException(int httpError,
java.lang.Throwable t,
java.lang.String msg,
ErrorType type)
|
UWSException(java.lang.String msg)
|
UWSException(java.lang.String msg,
ErrorType type)
|
UWSException(java.lang.Throwable t)
|
UWSException(java.lang.Throwable t,
ErrorType type)
|
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 |
NO_CONTENT
public static final int NO_CONTENT
- See Also:
- Constant Field Values
SEE_OTHER
public static final int SEE_OTHER
- See Also:
- Constant Field Values
BAD_REQUEST
public static final int BAD_REQUEST
- See Also:
- Constant Field Values
FORBIDDEN
public static final int FORBIDDEN
- See Also:
- Constant Field Values
NOT_FOUND
public static final int NOT_FOUND
- See Also:
- Constant Field Values
INTERNAL_SERVER_ERROR
public static final int INTERNAL_SERVER_ERROR
- See Also:
- Constant Field Values
NOT_IMPLEMENTED
public static final int NOT_IMPLEMENTED
- See Also:
- Constant Field Values
SERVICE_UNAVAILABLE
public static final int SERVICE_UNAVAILABLE
- See Also:
- Constant Field Values
USER_ACCESS_DENIED
public static final int USER_ACCESS_DENIED
- See Also:
- Constant Field Values
httpErrorCode
protected int httpErrorCode
- The HTTP error code (by default
NOT_FOUND
). It MUST BE greater than 0.
errorType
protected ErrorType errorType
- The UWS error type (by default
FATAL
). It MUST BE non null.
UWSException
public UWSException(java.lang.String msg)
UWSException
public UWSException(java.lang.String msg,
ErrorType type)
UWSException
public UWSException(java.lang.Throwable t)
UWSException
public UWSException(java.lang.Throwable t,
ErrorType type)
UWSException
public UWSException(int httpError,
java.lang.String msg)
UWSException
public UWSException(int httpError,
java.lang.String msg,
ErrorType type)
UWSException
public UWSException(int httpError,
java.lang.Throwable t)
UWSException
public UWSException(int httpError,
java.lang.Throwable t,
ErrorType type)
UWSException
public UWSException(int httpError,
java.lang.Throwable t,
java.lang.String msg)
UWSException
public UWSException(int httpError,
java.lang.Throwable t,
java.lang.String msg,
ErrorType type)
getHttpErrorCode
public int getHttpErrorCode()
getUWSErrorType
public ErrorType getUWSErrorType()