Class DuplicateQueryHandlerSubscriptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonNonTransientException
org.axonframework.queryhandling.registration.DuplicateQueryHandlerSubscriptionException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionInitializes a duplicate query handler subscription exception using the givenmessage.DuplicateQueryHandlerSubscriptionException(String queryName, Type responseType, QuerySubscription<?> initialHandler, QuerySubscription<?> duplicateHandler) Initialize a duplicate query handler subscription exception using the giveninitialHandlerandduplicateHandlerto form a specific message. -
Method Summary
Methods inherited from class org.axonframework.common.AxonNonTransientException
isCauseOfMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DuplicateQueryHandlerSubscriptionException
public DuplicateQueryHandlerSubscriptionException(String queryName, Type responseType, QuerySubscription<?> initialHandler, QuerySubscription<?> duplicateHandler) Initialize a duplicate query handler subscription exception using the giveninitialHandlerandduplicateHandlerto form a specific message.- Parameters:
queryName- The name of the query for which the duplicate was detectedresponseType- The response type of the query for which the duplicate was detectedinitialHandler- the initialMessageHandlerfor which a duplicate was encounteredduplicateHandler- the duplicatedMessageHandler
-
DuplicateQueryHandlerSubscriptionException
Initializes a duplicate query handler subscription exception using the givenmessage.- Parameters:
message- the message describing the exception
-