Class RuntimeExceptionMapper
java.lang.Object
org.jboss.resteasy.reactive.server.core.RuntimeExceptionMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Throwable>
voidaddExceptionMapper(Class<T> exceptionClass, org.jboss.resteasy.reactive.common.model.ResourceExceptionMapper<T> mapper) getExceptionMapper(Class<T> clazz, ResteasyReactiveRequestContext context, T throwable) Return the proper Exception that handles ornullif none is found.static Map<Class<? extends Throwable>, org.jboss.resteasy.reactive.common.model.ResourceExceptionMapper<? extends Throwable>> voidmapException(Throwable throwable, ResteasyReactiveRequestContext context)
-
Constructor Details
-
RuntimeExceptionMapper
-
-
Method Details
-
mapException
-
addExceptionMapper
-
getExceptionMapper
public <T extends Throwable> Map.Entry<Throwable,jakarta.ws.rs.ext.ExceptionMapper<? extends Throwable>> getExceptionMapper(Class<T> clazz, ResteasyReactiveRequestContext context, T throwable) Return the proper Exception that handles ornullif none is found. First checks if the Resource class that contained the Resource method contained class-level exception mappers. is optional and is used to when no mapper has been found for the original exception type, but the application has been configured to unwrap certain exceptions. -
getMappers
-