Top Description Methods
org.springframework.messaging.handler.annotation

public @Interface MessageExceptionHandler

extends Annotation
Annotations
@Target:METHOD
@Retention:RUNTIME
@Documented
@Reflective:MessageMappingReflectiveProcessor
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target, org.springframework.aot.hint.annotation.Reflective

Annotation for handling exceptions thrown from message-handling methods within a specific handler class.
Author
Rossen Stoyanchev
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public Class<? extends Throwable>[]
value()

Exceptions handled by the annotated method.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Class<? extends Throwable>[] value()

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