Class RuntimeExceptionMapper
java.lang.Object
org.jboss.resteasy.reactive.server.core.RuntimeExceptionMapper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Throwable>
voidaddExceptionMapper
(Class<T> exceptionClass, ResourceExceptionMapper<T> mapper) getExceptionMapper
(Class<T> clazz, ResteasyReactiveRequestContext context, T throwable) Return the proper Exception that handles ornull
if none is found.static Map<Class<? extends Throwable>,
ResourceExceptionMapper<? extends Throwable>> void
mapException
(Throwable throwable, ResteasyReactiveRequestContext context)
-
Field Details
-
IGNORE_RESPONSE
public static final jakarta.ws.rs.core.Response IGNORE_RESPONSE
-
-
Constructor Details
-
RuntimeExceptionMapper
-
-
Method Details
-
mapException
-
addExceptionMapper
public <T extends Throwable> void addExceptionMapper(Class<T> exceptionClass, ResourceExceptionMapper<T> mapper) -
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 ornull
if 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
public static Map<Class<? extends Throwable>,ResourceExceptionMapper<? extends Throwable>> getMappers()
-