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.ClientHandler
handle
in class com.sun.jersey.api.client.filter.ClientFilter
com.sun.jersey.api.client.ClientHandlerException
resp
- 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