类 AbstractExceptionHandlerMethodResolver

    • 方法详细资料

      • getExceptionsFromMethodSignature

        protected static List<Class<? extends Throwable>> getExceptionsFromMethodSignature​(Method method)
        Extract the exceptions this method handles.This implementation looks for sub-classes of Throwable in the method signature. The method is static to ensure safe use from sub-class constructors.
      • hasExceptionMappings

        public boolean hasExceptionMappings()
        Whether the contained type has any exception mappings.
      • resolveMethodByExceptionType

        public Method resolveMethodByExceptionType​(Class<? extends Throwable> exceptionType)
        Find a Method to handle the given exception type. This can be useful if an Exception instance is not available (e.g. for tools).
        参数:
        exceptionType - the exception type
        返回:
        a Method to handle the exception, or null if none found
        从以下版本开始:
        4.3.1