@Singleton public class ExceptionWrapperInterceptor extends Object implements ReaderInterceptor, WriterInterceptor
WebApplicationException to
MessageBodyProcessingException. This should be used on the client. It must have
the lowest priority in order to wrap all other interceptors.| Modifier and Type | Class and Description |
|---|---|
static class |
ExceptionWrapperInterceptor.Binder
Binder registering the
Exception Wrapper Interceptor
(used on the client side). |
| Constructor and Description |
|---|
ExceptionWrapperInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
aroundReadFrom(ReaderInterceptorContext context) |
void |
aroundWriteTo(WriterInterceptorContext context) |
public Object aroundReadFrom(ReaderInterceptorContext context) throws IOException, WebApplicationException
aroundReadFrom in interface ReaderInterceptorIOExceptionWebApplicationExceptionpublic void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException
aroundWriteTo in interface WriterInterceptorIOExceptionWebApplicationExceptionCopyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.