Class DuplicateQueryHandlerSubscriptionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.messaging.queryhandling.DuplicateQueryHandlerSubscriptionException
All Implemented Interfaces:
Serializable

public class DuplicateQueryHandlerSubscriptionException extends RuntimeException
Exception indicating a duplicate QueryHandler was subscribed.
Since:
5.0.0
Author:
Steven van Beelen
See Also:
  • Constructor Details

    • DuplicateQueryHandlerSubscriptionException

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

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