Class MainExceptionMapper
java.lang.Object
ch.tocco.nice2.rest.core.impl.exception.MainExceptionMapper
- All Implemented Interfaces:
- jakarta.ws.rs.ext.ExceptionMapper<Exception>,- org.glassfish.jersey.spi.ExtendedExceptionMapper<Exception>
public class MainExceptionMapper
extends Object
implements org.glassfish.jersey.spi.ExtendedExceptionMapper<Exception>
This is the only 
ExceptionMapper which is registered in the Jersey
 config directly. All other mappers are registered in the exceptionMappers Map
 and will be called by this mapper.
 The reason for this delegation is, that Jersey extracts the exception class to map the
 mapper onto from the generic parameter of the interface. Because of the Spring proxy
 mechanism this parameter is not available on the interface, when Jersey tries to read it.- 
Constructor SummaryConstructorsConstructorDescriptionMainExceptionMapper(Map<Class<? extends Exception>, jakarta.ws.rs.ext.ExceptionMapper> exceptionMappers, List<RestExceptionListener> exceptionListeners, org.slf4j.Logger log) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisMappable(Exception exception) jakarta.ws.rs.core.ResponsetoResponse(Exception exception) 
- 
Constructor Details- 
MainExceptionMapperpublic MainExceptionMapper(Map<Class<? extends Exception>, jakarta.ws.rs.ext.ExceptionMapper> exceptionMappers, List<RestExceptionListener> exceptionListeners, org.slf4j.Logger log) 
 
- 
- 
Method Details