Class DuplicateCommandHandlerSubscriptionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.messaging.commandhandling.DuplicateCommandHandlerSubscriptionException
All Implemented Interfaces:
Serializable

public class DuplicateCommandHandlerSubscriptionException extends RuntimeException
Exception indicating a duplicate CommandHandler was subscribed.
Since:
4.2.0
Author:
Steven van Beelen
See Also:
  • Constructor Details

    • DuplicateCommandHandlerSubscriptionException

      public DuplicateCommandHandlerSubscriptionException(@Nonnull QualifiedName name, @Nonnull CommandHandler initialHandler, @Nonnull CommandHandler duplicateHandler)
      Initialize a duplicate CommandHandler subscription exception using the given initialHandler and duplicateHandler to form a specific message.
      Parameters:
      name - The name of the command for which the duplicate was detected.
      initialHandler - the initial CommandHandler for which a duplicate was encountered.
      duplicateHandler - The duplicated CommandHandler.
    • DuplicateCommandHandlerSubscriptionException

      public DuplicateCommandHandlerSubscriptionException(String message)
      Initializes a DuplicateCommandHandlerSubscriptionException using the given message.
      Parameters:
      message - The message describing the exception.