Class SubscriptionQueryAlreadyRegisteredException

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

public class SubscriptionQueryAlreadyRegisteredException extends RuntimeException
Exception thrown whenever QueryBus.subscriptionQuery(SubscriptionQueryMessage, ProcessingContext, int) is invoked multiple times for the same
invalid reference
SubscriptionQueryMessage
.
Since:
5.0.0
Author:
Steven van Beelen
See Also:
  • Constructor Details

    • SubscriptionQueryAlreadyRegisteredException

      public SubscriptionQueryAlreadyRegisteredException(@Nonnull String queryId)
      Constructs a SubscriptionQueryAlreadyRegisteredException for the given queryId.
      Parameters:
      queryId - The
      invalid reference
      SubscriptionQueryMessage#identifier()
      of the subscription query accidentally being registered multiple times.