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(Class<?> handlerType)
A constructor that finds
MessageExceptionHandler methods in the given type. |
getExceptionsFromMethodSignature, hasExceptionMappings, resolveMethod, resolveMethodByExceptionType
public AnnotationExceptionHandlerMethodResolver(Class<?> handlerType)
MessageExceptionHandler
methods in the given type.handlerType
- the type to introspect