- Type Parameters:
T - The sub-class of Throwable to catch
E - The entity type wanted in the Response
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<T>
- Direct Known Subclasses:
- UncaughtThrowableMapper
public abstract class GenericUncaughtExceptionMapper<T extends Throwable,E>
extends Object
implements javax.ws.rs.ext.ExceptionMapper<T>
Generic exception mapper, implementing ExceptionMapper, used to convert uncaught exceptions to a proper Response to return.
To implement your own in a Lutece plugin or module using lutece-rest-plugin-rest, extend this class, annotate it with Provider, and
add it as a bean in the context.xml file.