Class DuplicateQueryHandlerSubscriptionException

All Implemented Interfaces:
Serializable

public class DuplicateQueryHandlerSubscriptionException extends AxonNonTransientException
Exception indicating a duplicate Query Handler was subscribed whilst this behavior is purposefully guarded against.
Since:
4.6.0
Author:
Mitchell Herrijgers
See Also:
  • Constructor Details

    • DuplicateQueryHandlerSubscriptionException

      public DuplicateQueryHandlerSubscriptionException(String queryName, Type responseType, QuerySubscription<?> initialHandler, QuerySubscription<?> duplicateHandler)
      Initialize a duplicate query handler subscription exception using the given initialHandler and duplicateHandler to form a specific message.
      Parameters:
      queryName - The name of the query for which the duplicate was detected
      responseType - The response type of the query for which the duplicate was detected
      initialHandler - the initial MessageHandler for which a duplicate was encountered
      duplicateHandler - the duplicated MessageHandler
    • DuplicateQueryHandlerSubscriptionException

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