Class GenericUncaughtExceptionMapper<T extends java.lang.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:
javax.ws.rs.ext.ExceptionMapper<T>
- Direct Known Subclasses:
UncaughtThrowableMapper
public abstract class GenericUncaughtExceptionMapper<T extends java.lang.Throwable,E> extends java.lang.Object implements javax.ws.rs.ext.ExceptionMapper<T>Generic exception mapper, implementingExceptionMapper, used to convert uncaught exceptions to a properResponseto return.
To implement your own in a Lutece plugin or module using lutece-rest-plugin-rest, extend this class, annotate it withProvider, and add it as a bean in the context.xml file.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringERROR_DURING_TREATMENT
-
Constructor Summary
Constructors Constructor Description GenericUncaughtExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsetoResponse(T exception)
-
-
-
Field Detail
-
ERROR_DURING_TREATMENT
public static final java.lang.String ERROR_DURING_TREATMENT
- See Also:
- Constant Field Values
-
-