类 AnnotationExceptionHandlerMethodResolver
- java.lang.Object
- org.springframework.messaging.handler.invocation.AbstractExceptionHandlerMethodResolver
- org.springframework.messaging.handler.annotation.support.AnnotationExceptionHandlerMethodResolver
public class AnnotationExceptionHandlerMethodResolver extends AbstractExceptionHandlerMethodResolver
A sub-class ofAbstractExceptionHandlerMethodResolver
that looks forMessageExceptionHandler
-annotated methods in a given class. The actual exception types handled are extracted either from the annotation, if present, or from the method signature as a fallback option.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
字段概要
字段 修饰符和类型 字段 说明 static ReflectionUtils.MethodFilter
EXCEPTION_HANDLER_METHOD_FILTER
已过时。as of Spring 4.2.3, since it isn't used anymore
构造器概要
构造器 构造器 说明 AnnotationExceptionHandlerMethodResolver(Class<?> handlerType)
A constructor that findsMessageExceptionHandler
methods in the given type.
方法概要
从类继承的方法 org.springframework.messaging.handler.invocation.AbstractExceptionHandlerMethodResolver
getExceptionsFromMethodSignature, hasExceptionMappings, resolveMethod, resolveMethodByExceptionType
字段详细资料
EXCEPTION_HANDLER_METHOD_FILTER
@Deprecated public static final ReflectionUtils.MethodFilter EXCEPTION_HANDLER_METHOD_FILTER
已过时。as of Spring 4.2.3, since it isn't used anymoreA filter for selecting annotated exception handling methods.
构造器详细资料
AnnotationExceptionHandlerMethodResolver
public AnnotationExceptionHandlerMethodResolver(Class<?> handlerType)
A constructor that findsMessageExceptionHandler
methods in the given type.- 参数:
handlerType
- the type to introspect