public final class WebCommandCallRTException extends WebCommandRTException
Example #1:
try {
return service.getAttributes(uri);
} catch (UESArtifactRTException e) {
throw new WebCommandCallRTException(e, 403);
}
Example #2:
try {
return service.getAttributes(uri);
} catch (UESArtifactRTException e) {
Object customData = ...; // convertible by JAXB
Response customResponse = Response.status(418).entity(customData).build();
throw new WebCommandCallRTException(e, customResponse);
}UESRuntimeException.E05100| Modifier and Type | Field and Description |
|---|---|
private java.lang.Throwable |
cause
The cause of the exception.
|
private javax.ws.rs.core.Response |
response
The JAX-RS response object for this exception.
|
private int |
status
The HTTP status code to send.
|
EXCEPTION_SEQ| Modifier | Constructor and Description |
|---|---|
|
WebCommandCallRTException(java.lang.Throwable aCause,
Creates a new instance of WebCommandRTException.
|
private |
WebCommandCallRTException(java.lang.Throwable aCause,
Initalizes final fields.
|
|
WebCommandCallRTException(java.lang.Throwable aCause,
Creates a new instance of WebCommandRTException.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getCause()
Getter for property cause.
|
javax.ws.rs.core.Response |
getResponse()
Getter for property response.
|
int |
getStatus()
Getter for property status.
|
addMessages, containsMessages, getErrorCode, getID, getLocalizedMessage, getMessage, getMessages, getSimpleMessage, setIDaCause - The cause of the exception.aStatus - The HTTP status code to send.aCause - The cause of the exception.aResponse - The HTTP response to use.aCause - The cause.aStatus - The status.aResponse - The response.getCause in class java.lang.Throwable