org.axonframework.eventhandling
Class UnsupportedHandlerMethodException

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

Constructor Summary
UnsupportedHandlerMethodException(String message, Method violatingMethod)
          Initialize the exception with a message and the violatingMethod.
 
Method Summary
 Method getViolatingMethod()
          A reference to the method that violated the event handler rules.
 
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

UnsupportedHandlerMethodException

public UnsupportedHandlerMethodException(String message,
                                         Method 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 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.