org.axonframework.eventhandling
Class UnsupportedHandlerMethodException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.util.AxonException
org.axonframework.util.AxonNonTransientException
org.axonframework.util.AxonConfigurationException
org.axonframework.eventhandling.UnsupportedHandlerMethodException
- All Implemented Interfaces:
- Serializable
public class UnsupportedHandlerMethodException
- extends AxonConfigurationException
Thrown when an EventHandler annotated method was found that does
not conform to the rules that apply to those methods.
- Since:
- 0.1
- Author:
- Allard Buijze
- See Also:
EventHandler,
Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
UnsupportedHandlerMethodException
public UnsupportedHandlerMethodException(String message,
Method violatingMethod)
- Initialize the exception with a
message and the violatingMethod.
- Parameters:
message - a descriptive message of the violationviolatingMethod - the method that violates the rules of annotated Event Handlers
getViolatingMethod
public Method getViolatingMethod()
- A reference to the method that violated the event handler rules.
- Returns:
- the method that violated the event handler rules
- See Also:
EventHandler
Copyright © 2011. All Rights Reserved.