Class ExceptionMapping
- java.lang.Object
-
- org.jboss.resteasy.reactive.server.core.ExceptionMapping
-
public class ExceptionMapping extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExceptionMapping.ExceptionTypeAndMessageContainsPredicate
static class
ExceptionMapping.ExceptionTypePredicate
-
Constructor Summary
Constructors Constructor Description ExceptionMapping()
-
Method Summary
-
-
-
Method Detail
-
mapException
public void mapException(Throwable throwable, ResteasyReactiveRequestContext context)
-
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.
-
addExceptionMapper
public <T extends Throwable> void addExceptionMapper(Class<T> exceptionClass, ResourceExceptionMapper<T> mapper)
-
getMappers
public Map<Class<? extends Throwable>,ResourceExceptionMapper<? extends Throwable>> getMappers()
-
initializeDefaultFactories
public void initializeDefaultFactories(Function<String,BeanFactory<?>> factoryCreator)
-
-