spring-framework / org.springframework.web.method.annotation / ExceptionHandlerMethodResolver / resolveMethod

resolveMethod

@Nullable open fun resolveMethod(exception: Exception): Method

Find a Method to handle the given exception. Use ExceptionDepthComparator if more than one match is found.

Parameters

exception - the exception

Return
a Method to handle the exception, or null if none found