public abstract class AbstractExceptionHandlerMethodResolver
extends java.lang.Object
ExceptionDepthComparator and the top match is returned.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractExceptionHandlerMethodResolver(java.util.Map<java.lang.Class<? extends java.lang.Throwable>,java.lang.reflect.Method> mappedMethods)
Protected constructor accepting exception-to-method mappings.
|
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.List<java.lang.Class<? extends java.lang.Throwable>> |
getExceptionsFromMethodSignature(java.lang.reflect.Method method)
Extract the exceptions this method handles.This implementation looks for
sub-classes of Throwable in the method signature.
|
boolean |
hasExceptionMappings()
Whether the contained type has any exception mappings.
|
java.lang.reflect.Method |
resolveMethod(java.lang.Exception exception)
Find a method to handle the given exception.
|
protected AbstractExceptionHandlerMethodResolver(java.util.Map<java.lang.Class<? extends java.lang.Throwable>,java.lang.reflect.Method> mappedMethods)
protected static java.util.List<java.lang.Class<? extends java.lang.Throwable>> getExceptionsFromMethodSignature(java.lang.reflect.Method method)
public boolean hasExceptionMappings()
public java.lang.reflect.Method resolveMethod(java.lang.Exception exception)
ExceptionDepthComparator if more than one match is found.exception - the exceptionnull