spring-framework / org.springframework.messaging.handler.annotation.support / AnnotationExceptionHandlerMethodResolver

AnnotationExceptionHandlerMethodResolver

open class AnnotationExceptionHandlerMethodResolver : AbstractExceptionHandlerMethodResolver

A sub-class of AbstractExceptionHandlerMethodResolver that looks for MessageExceptionHandler-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.

Author
Rossen Stoyanchev

Since
4.0

Constructors

<init>

AnnotationExceptionHandlerMethodResolver(handlerType: Class<*>)

A constructor that finds MessageExceptionHandler methods in the given type.