org.axonframework.common.annotation
Class UnsupportedHandlerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.axonframework.common.AxonException
                  extended by org.axonframework.common.AxonNonTransientException
                      extended by org.axonframework.common.AxonConfigurationException
                          extended by 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

Constructor Summary
UnsupportedHandlerException(String message, Member violatingMethod)
          Initialize the exception with a message and the violatingMethod.
 
Method Summary
 Member getViolatingMethod()
          A reference to the method that violated the event handler rules.
 
Methods inherited from class org.axonframework.common.AxonNonTransientException
isCauseOf
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsupportedHandlerException

public UnsupportedHandlerException(String message,
                                   Member violatingMethod)
Initialize the exception with a message and the violatingMethod.

Parameters:
message - a descriptive message of the violation
violatingMethod - the method that violates the rules of annotated Event Handlers
Method Detail

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.