Exception
to the exception types supported by a given Method.
| Modifier and Type | Field and Description |
|---|---|
| public static final ReflectionUtils. | EXCEPTION_HANDLER_METHODS
A filter for selecting |
| private final Map | |
| private final Map | |
| private static final Method |
| Access | Constructor and Description |
|---|---|
| public | ExceptionHandlerMethodResolver(Class<?>
the type to introspect handlerType)A constructor that finds |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private List | detectExceptionMappings(Method method)
Extract exception mappings from the |
| 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 |
| public Method | Returns: a Method to handle the exception, ornull if none foundthe exception exception)Find a |
| EXCEPTION_HANDLER_METHODS | back to summary |
|---|---|
| public static final ReflectionUtils. A filter for selecting | |
| 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 | |
| ExceptionHandlerMethodResolver | back to summary |
|---|---|
| public ExceptionHandlerMethodResolver(Class<?> handlerType) A constructor that finds
| |
| addExceptionMapping | back to summary |
|---|---|
| private void addExceptionMapping(Class<? extends Throwable> exceptionType, Method method) | |
| detectAnnotationExceptionMappings | back to summary |
|---|---|
| private void detectAnnotationExceptionMappings(Method method, List<Class<? extends Throwable>> result) | |
| detectExceptionMappings | back to summary |
|---|---|
| private List Extract exception mappings from the
| |
| 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(Exception exception) Find a Uses | |
| resolveMethodByExceptionType | back to summary |
|---|---|
| public Method resolveMethodByExceptionType(Class<? extends Throwable> exceptionType) Find a Uses | |
| resolveMethodByThrowable | back to summary |
|---|---|
| public Method resolveMethodByThrowable(Throwable exception) Find a Uses | |