org.axonframework.common.annotation
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.common.annotation.UnsupportedHandlerException
- All Implemented Interfaces:
- Serializable
public class UnsupportedHandlerException
- extends AxonConfigurationException
Thrown when an @...Handler annotated method was found that does not conform to the rules that apply to those
methods.
- Since:
- 2.0
- Author:
- Allard Buijze
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
UnsupportedHandlerException
public UnsupportedHandlerException(String message,
Member 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 Member getViolatingMethod()
- A reference to the method that violated the event handler rules.
- Returns:
- the method that violated the event handler rules
Copyright © 2010-2016. All Rights Reserved.