spring-framework / org.springframework.messaging.handler.annotation / MessageExceptionHandler

MessageExceptionHandler

@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) class MessageExceptionHandler

Annotation for handling exceptions thrown from message-handling methods within a specific handler class.

Author
Rossen Stoyanchev

Since
4.0

Constructors

<init>

MessageExceptionHandler(vararg value: KClass<out Throwable>)

Annotation for handling exceptions thrown from message-handling methods within a specific handler class.

Properties

value

val value: Array<KClass<out Throwable>>

Exceptions handled by the annotated method. If empty, will default to any exceptions listed in the method argument list.