Class GenericUncaughtJerseyExceptionMapper<T extends jakarta.ws.rs.WebApplicationException,E>
java.lang.Object
fr.paris.lutece.plugins.rest.service.mapper.GenericUncaughtJerseyExceptionMapper<T,E>
- Type Parameters:
T- The sub-class ofWebApplicationExceptionto catchE- The entity type wanted in theResponse
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<T>
- Direct Known Subclasses:
UncaughtJerseyExceptionMapper
public abstract class GenericUncaughtJerseyExceptionMapper<T extends jakarta.ws.rs.WebApplicationException,E>
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<T>
Generic REST 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 REST 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.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GenericUncaughtJerseyExceptionMapper
public GenericUncaughtJerseyExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponsein interfacejakarta.ws.rs.ext.ExceptionMapper<T extends jakarta.ws.rs.WebApplicationException>
-