@Retention(value=RUNTIME) @Target(value={METHOD,ANNOTATION_TYPE}) public @interface ExceptionHandler
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.
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends Message> |
messageType
Specifies the type of message that can be handled by the member method.
|
Class<?> |
payloadType
Specifies the type of message payload that can be handled by the member method.
|
Class<? extends Exception> |
resultType
Defines the type of result this handler needs to be triggered for.
|
Copyright © 2010–2024. All rights reserved.