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

resolveMethodByThrowable

@Nullable open fun resolveMethodByThrowable(exception: Throwable): Method

Find a Method to handle the given Throwable. 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

Since
5.0