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.| Modifier and Type | Field and Description |
|---|---|
static org.springframework.util.ReflectionUtils.MethodFilter |
EXCEPTION_HANDLER_METHOD_FILTER
A filter for selecting annotated exception handling methods.
|
| Constructor and Description |
|---|
AnnotationExceptionHandlerMethodResolver(Class<?> handlerType)
A constructor that finds
MessageExceptionHandler methods in the given type. |
getExceptionsFromMethodSignature, hasExceptionMappings, resolveMethodpublic static final org.springframework.util.ReflectionUtils.MethodFilter EXCEPTION_HANDLER_METHOD_FILTER
public AnnotationExceptionHandlerMethodResolver(Class<?> handlerType)
MessageExceptionHandler methods in the given type.handlerType - the type to introspect