Class DuplicateCommandHandlerSubscriptionException

All Implemented Interfaces:
Serializable

public class DuplicateCommandHandlerSubscriptionException extends AxonNonTransientException
Exception indicating a duplicate Command Handler was subscribed whilst this behavior is purposefully guarded against.
Since:
4.2
Author:
Steven van Beelen
See Also:
  • Constructor Details

    • DuplicateCommandHandlerSubscriptionException

      public DuplicateCommandHandlerSubscriptionException(String commandName, MessageHandler<? super CommandMessage<?>> initialHandler, MessageHandler<? super CommandMessage<?>> duplicateHandler)
      Initialize a duplicate command handler subscription exception using the given initialHandler and duplicateHandler to form a specific message.
      Parameters:
      commandName - The name of the command for which the duplicate was detected
      initialHandler - the initial MessageHandler for which a duplicate was encountered
      duplicateHandler - the duplicated MessageHandler
    • DuplicateCommandHandlerSubscriptionException

      public DuplicateCommandHandlerSubscriptionException(String message)
      Initializes a duplicate command handler subscription exception using the given message.
      Parameters:
      message - the message describing the exception