public class AnnotationExceptionHandlerMethodResolver extends AbstractExceptionHandlerMethodResolver
AbstractExceptionHandlerMethodResolver
that looks for
MessageExceptionHandler
-annotated methods in a given class. The actual
exception types handled are extracted either from the annotation, if present,
or from the method signature as a fallback option.Constructor and Description |
---|
AnnotationExceptionHandlerMethodResolver(java.lang.Class<?> handlerType)
A constructor that finds
MessageExceptionHandler methods in the given type. |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<java.lang.Class<? extends java.lang.Throwable>,java.lang.reflect.Method> |
initExceptionMappings(java.lang.Class<?> handlerType) |
getExceptionsFromMethodSignature, hasExceptionMappings, resolveMethod, resolveMethodByExceptionType
public AnnotationExceptionHandlerMethodResolver(java.lang.Class<?> handlerType)
MessageExceptionHandler
methods in the given type.handlerType
- the type to introspect