Class UnsupportedHandlerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonNonTransientException
org.axonframework.common.AxonConfigurationException
org.axonframework.messaging.core.annotation.UnsupportedHandlerException
- All Implemented Interfaces:
Serializable
Thrown when an
MessageHandler annotated method was found that does not conform to the rules that apply to
those methods.- Since:
- 2.0.0
- Author:
- Allard Buijze
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnsupportedHandlerException(String message, Member violatingMethod) Initialize the exception with amessageand theviolatingMethod. -
Method Summary
Modifier and TypeMethodDescriptionA reference to the method that violated the event handler rules.Methods inherited from class org.axonframework.common.AxonNonTransientException
isCauseOfMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedHandlerException
Initialize the exception with amessageand theviolatingMethod.- Parameters:
message- a descriptive message of the violationviolatingMethod- the method that violates the rules of annotated Event Handlers
-
-
Method Details
-
getViolatingMethod
A reference to the method that violated the event handler rules.- Returns:
- the method that violated the event handler rules
-