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 ClassesModifier and TypeClassDescriptionstatic classBinder registering theException Wrapper Interceptor(used on the client side). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaroundReadFrom(ReaderInterceptorContext context) voidaroundWriteTo(WriterInterceptorContext context)
-
Constructor Details
-
MappableExceptionWrapperInterceptor
public MappableExceptionWrapperInterceptor()
-
-
Method Details
-
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
-