Package | Description |
---|---|
tap.error | |
uws | |
uws.job | |
uws.service.error |
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultTAPErrorWriter.writeError(java.lang.String message,
ErrorType type,
int httpErrorCode,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
java.lang.String reqID,
JobOwner user,
java.lang.String action) |
Modifier and Type | Field and Description |
---|---|
protected ErrorType |
UWSException.errorType
The UWS error type (by default
FATAL ). |
Modifier and Type | Method and Description |
---|---|
ErrorType |
UWSException.getUWSErrorType()
Get the type of this error (from the UWS point of view ; FATAL or TRANSIENT).
|
Constructor and Description |
---|
UWSException(int httpError,
java.lang.String msg,
ErrorType type)
Exception that occurs in the general context of UWS, with the given type and which should return the given HTTP error code.
|
UWSException(int httpError,
java.lang.Throwable t,
ErrorType type)
Exception that occurs in the general context of UWS with the given error type,
because the given exception has been thrown and that which should return the given HTTP error status.
|
UWSException(int httpError,
java.lang.Throwable t,
java.lang.String msg,
ErrorType type)
Exception that occurs in the general context of UWS,
because the given exception has been thrown and that which should return the given HTTP error status.
|
UWSException(java.lang.String msg,
ErrorType type)
Exception that occurs in the general context of UWS, and with the specified error type (FATAL or TRANSIENT).
|
UWSException(java.lang.Throwable t,
ErrorType type)
Exception with the given type that occurs in the general context of UWS
because the given exception has been thrown.
|
Modifier and Type | Field and Description |
---|---|
protected ErrorType |
ErrorSummary.type
[Required] The type of the error.
|
Modifier and Type | Method and Description |
---|---|
ErrorType |
ErrorSummary.getType()
Gets the type of the occurred error (
FATAL by default). |
static ErrorType |
ErrorType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorType[] |
ErrorType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
ErrorSummary(java.lang.Exception ex,
ErrorType errorType,
java.lang.String detailedMsgURI)
Builds an error summary from an Exception.
|
ErrorSummary(java.lang.String msg,
ErrorType errorType)
Builds an error summary with the given short description.
|
ErrorSummary(java.lang.String msg,
ErrorType errorType,
java.lang.String detailedMsgURI)
Builds an error summary with the given short description and with the URL to access to a detailed description.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultUWSErrorWriter.formatError(java.lang.String message,
ErrorType type,
int httpErrorCode,
java.lang.String reqID,
java.lang.String action,
JobOwner user,
javax.servlet.http.HttpServletResponse response,
java.lang.String acceptHeader)
Formats and writes the given error in the HTTP servlet response.
|
protected void |
DefaultUWSErrorWriter.formatHTMLError(java.lang.String message,
ErrorType type,
int httpErrorCode,
java.lang.String reqID,
java.lang.String action,
JobOwner user,
javax.servlet.http.HttpServletResponse response)
Formats and writes the given error in the HTTP servlet response.
|
protected void |
DefaultUWSErrorWriter.formatJSONError(java.lang.String message,
ErrorType type,
int httpErrorCode,
java.lang.String reqID,
java.lang.String action,
JobOwner user,
javax.servlet.http.HttpServletResponse response)
Formats and writes the given error in the HTTP servlet response.
|
boolean |
ServiceErrorWriter.writeError(java.lang.String message,
ErrorType type,
int httpErrorCode,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
java.lang.String reqID,
JobOwner user,
java.lang.String action)
Write the described error in the given response.
|
boolean |
DefaultUWSErrorWriter.writeError(java.lang.String message,
ErrorType type,
int httpErrorCode,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
java.lang.String reqID,
JobOwner user,
java.lang.String action) |