Class UnsupportedHandlerException

All Implemented Interfaces:
Serializable

public class UnsupportedHandlerException extends AxonConfigurationException
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 Details

    • 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 Details

    • getViolatingMethod

      public Member getViolatingMethod()
      A reference to the method that violated the event handler rules.
      Returns:
      the method that violated the event handler rules