ExceptionDepthComparator and the top match is returned.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Map | |
| private static final Method |
| Access | Constructor and Description |
|---|---|
| protected | AbstractExceptionHandlerMethodResolver(Map<Class<? extends Throwable>, Method> mappedMethods)
Protected constructor accepting exception-to-method mappings. |
| Modifier and Type | Method and Description |
|---|---|
| protected static List | |
| private Method | getMappedMethod(Class<? extends Throwable> exceptionType)
Return the |
| public boolean | |
| private void | |
| public Method | Returns: a Method to handle the exception, ornull if none foundthe exception exception)Find a |
| public Method | Returns: a Method to handle the exception, ornull if none foundthe exception type exceptionType)Find a |
| exceptionLookupCache | back to summary |
|---|---|
| private final Map<Class<? extends Throwable>, Method> exceptionLookupCache | |
| mappedMethods | back to summary |
|---|---|
| private final Map<Class<? extends Throwable>, Method> mappedMethods | |
| NO_MATCHING_EXCEPTION_HANDLER_METHOD | back to summary |
|---|---|
| private static final Method NO_MATCHING_EXCEPTION_HANDLER_METHOD | |
| AbstractExceptionHandlerMethodResolver | back to summary |
|---|---|
| protected AbstractExceptionHandlerMethodResolver(Map<Class<? extends Throwable>, Method> mappedMethods) Protected constructor accepting exception-to-method mappings. | |
| getExceptionsFromMethodSignature | back to summary |
|---|---|
| protected static List Extract the exceptions this method handles. This implementation looks for subclasses of Throwable in the method signature. The method is static to ensure safe use from subclass constructors.
| |
| getMappedMethod | back to summary |
|---|---|
| private Method getMappedMethod(Class<? extends Throwable> exceptionType) Return the
| |
| hasExceptionMappings | back to summary |
|---|---|
| public boolean hasExceptionMappings() Whether the contained type has any exception mappings. | |
| noMatchingExceptionHandler | back to summary |
|---|---|
| private void noMatchingExceptionHandler() For the
| |
| resolveMethod | back to summary |
|---|---|
| public Method resolveMethod(Throwable exception) Find a Uses | |
| resolveMethodByExceptionType | back to summary |
|---|---|
| public Method resolveMethodByExceptionType(Class<? extends Throwable> exceptionType) Find a Uses | |