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
Modifier and TypeClassDescriptionstatic class
Binder registering theException Wrapper Interceptor
(used on the client side). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaroundReadFrom
(ReaderInterceptorContext context) void
aroundWriteTo
(WriterInterceptorContext context)
-
Constructor Details
-
MappableExceptionWrapperInterceptor
public MappableExceptionWrapperInterceptor()
-
-
Method Details
-
aroundReadFrom
public Object aroundReadFrom(ReaderInterceptorContext context) throws IOException, WebApplicationException - Specified by:
aroundReadFrom
in interfaceReaderInterceptor
- Throws:
IOException
WebApplicationException
-
aroundWriteTo
public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException - Specified by:
aroundWriteTo
in interfaceWriterInterceptor
- Throws:
IOException
WebApplicationException
-