Class 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