public class WebCommandClientErrorHandlerFilter
extends com.sun.jersey.api.client.filter.ClientFilter
| Constructor and Description |
|---|
WebCommandClientErrorHandlerFilter() |
| Modifier and Type | Method and Description |
|---|---|
private ErrorCode |
createErrorCode(UESErrorResponse uesErr)
Restores exception error codes.
|
private UESRuntimeException |
createUESRuntimeException(UESErrorResponse uesErr,
Restores exception.
|
com.sun.jersey.api.client.ClientResponse |
handle(com.sun.jersey.api.client.ClientRequest cr) |
private void |
checkError(com.sun.jersey.api.client.ClientResponse resp)
Check if response contains error.
|
private void |
setExceptionAttributes(UESRuntimeException e,
Restores exception attributes.
|
private void |
setExceptionMessages(UESRuntimeException e,
Restores exception messages.
|
handle in interface com.sun.jersey.api.client.ClientHandlerhandle in class com.sun.jersey.api.client.filter.ClientFiltercom.sun.jersey.api.client.ClientHandlerExceptionresp - REST command responseuesErr - Object with serialized exceptionerrCode - Exception error codeexcCls - Exception classjava.lang.Exception - In case of exception instantiation problemsuesErr - Object with serialized error codejava.lang.Exception - In case of deserialization problemse - Exception where to set attributesuesErr - Object with serialized attributesjava.lang.Exception - In case of deserialization problemse - Exception where to set error messagesuesErr - Object with serialized messagesjava.lang.Exception - In case of deserialization problems