Class MappableExceptionWrapperInterceptor
- java.lang.Object
-
- org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor
-
- All Implemented Interfaces:
ReaderInterceptor,WriterInterceptor
@Priority(10) @Singleton public class MappableExceptionWrapperInterceptor extends Object implements ReaderInterceptor, WriterInterceptor
Interceptor that wraps specific exceptions types thrown by wrapped interceptors and by message body readers and writers into a mappable exception. It must have the lowest priority in order to wrap all other interceptors.- Author:
- Miroslav Fuksa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMappableExceptionWrapperInterceptor.BinderBinder registering theException Wrapper Interceptor(used on the client side).
-
Constructor Summary
Constructors Constructor Description MappableExceptionWrapperInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectaroundReadFrom(ReaderInterceptorContext context)voidaroundWriteTo(WriterInterceptorContext context)
-
-
-
Method Detail
-
aroundReadFrom
public Object aroundReadFrom(ReaderInterceptorContext context) throws IOException, WebApplicationException
- Specified by:
aroundReadFromin interfaceReaderInterceptor- Throws:
IOExceptionWebApplicationException
-
aroundWriteTo
public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException
- Specified by:
aroundWriteToin interfaceWriterInterceptor- Throws:
IOExceptionWebApplicationException
-
-