Class GenericUncaughtExceptionMapper<T extends Throwable,E>
java.lang.Object
fr.paris.lutece.plugins.rest.service.mapper.GenericUncaughtExceptionMapper<T,E>
- Type Parameters:
T- The sub-class ofThrowableto catchE- The entity type wanted in theResponse
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<T>
- Direct Known Subclasses:
UncaughtThrowableMapper
public abstract class GenericUncaughtExceptionMapper<T extends Throwable,E>
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<T>
Generic exception mapper, implementing
To implement your own in a Lutece plugin or module using lutece-rest-plugin-rest, extend this class, annotate it with
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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ERROR_DURING_TREATMENT
- See Also:
-
-
Constructor Details
-
GenericUncaughtExceptionMapper
public GenericUncaughtExceptionMapper()
-
-
Method Details