Class RuntimeExceptionMapper
- java.lang.Object
-
- org.jboss.resteasy.reactive.server.core.RuntimeExceptionMapper
-
public class RuntimeExceptionMapper extends Object
-
-
Constructor Summary
Constructors Constructor Description RuntimeExceptionMapper(ExceptionMapping mapping, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Throwable>
voidaddExceptionMapper(Class<T> exceptionClass, ResourceExceptionMapper<T> mapper)
<T extends Throwable>
Map.Entry<Throwable,javax.ws.rs.ext.ExceptionMapper<? extends Throwable>>getExceptionMapper(Class<T> clazz, ResteasyReactiveRequestContext context, T throwable)
Return the proper Exception that handles {@param clazz} ornull
if none is found.Map<Class<? extends Throwable>,ResourceExceptionMapper<? extends Throwable>>
getMappers()
void
mapException(Throwable throwable, ResteasyReactiveRequestContext context)
-
-
-
Constructor Detail
-
RuntimeExceptionMapper
public RuntimeExceptionMapper(ExceptionMapping mapping, ClassLoader classLoader)
-
-
Method Detail
-
mapException
public void mapException(Throwable throwable, ResteasyReactiveRequestContext context)
-
addExceptionMapper
public <T extends Throwable> void addExceptionMapper(Class<T> exceptionClass, ResourceExceptionMapper<T> mapper)
-
getExceptionMapper
public <T extends Throwable> Map.Entry<Throwable,javax.ws.rs.ext.ExceptionMapper<? extends Throwable>> getExceptionMapper(Class<T> clazz, ResteasyReactiveRequestContext context, T throwable)
Return the proper Exception that handles {@param clazz} ornull
if none is found. First checks if the Resource class that contained the Resource method contained class-level exception mappers. {@param throwable} 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 Map<Class<? extends Throwable>,ResourceExceptionMapper<? extends Throwable>> getMappers()
-
-