Annotation Interface ExceptionHandler
Annotation marking a Handler as an interceptor for other handlers that is only interested in handling
exception results. This handler method will be invoked after a regular handler has been executed and may receive the
result of that handler as a parameter.
A handler will only be invoked when the parameters of this method match the combination of the handled Message and the result of the handler method invocation.
- Since:
- 4.4.0
- Author:
- Allard Buijze
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecifies the type of message that can be handled by the member method.Class<?> Specifies the type of message payload that can be handled by the member method.Defines the type of result this handler needs to be triggered for.
-
Element Details
-
resultType
Defines the type of result this handler needs to be triggered for. Defaults to allExceptions.- Default:
java.lang.Exception.class
-
messageType
Specifies the type of message that can be handled by the member method. Defaults to anyMessage.- Default:
org.axonframework.messaging.core.Message.class
-
payloadType
Class<?> payloadTypeSpecifies the type of message payload that can be handled by the member method. The payload of the message should be assignable to this type. Defaults to anyObject.- Default:
java.lang.Object.class
-