public class ExceptionHandlerMethodResolver extends Object
@ExceptionHandler
 annotation or by looking at the signature of an @ExceptionHandler method.| Modifier and Type | Field and Description | 
|---|---|
static ReflectionUtils.MethodFilter | 
EXCEPTION_HANDLER_METHODS
A filter for selecting  
@ExceptionHandler methods. | 
| Constructor and Description | 
|---|
ExceptionHandlerMethodResolver(Class<?> handlerType)
A constructor that finds  
ExceptionHandler methods in the given type. | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
hasExceptionMappings()
Whether the contained type has any exception mappings. 
 | 
Method | 
resolveMethod(Exception exception)
Find a method to handle the given exception. 
 | 
public static final ReflectionUtils.MethodFilter EXCEPTION_HANDLER_METHODS
@ExceptionHandler methods.public ExceptionHandlerMethodResolver(Class<?> handlerType)
ExceptionHandler methods in the given type.handlerType - the type to introspectpublic boolean hasExceptionMappings()
public Method resolveMethod(Exception exception)
ExceptionDepthComparator if more than one match is found.exception - the exceptionnull