Class DuplicateCommandHandlerSubscriptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonNonTransientException
org.axonframework.commandhandling.DuplicateCommandHandlerSubscriptionException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionInitializes a duplicate command handler subscription exception using the givenmessage.DuplicateCommandHandlerSubscriptionException(String commandName, MessageHandler<? super CommandMessage<?>> initialHandler, MessageHandler<? super CommandMessage<?>> duplicateHandler) Initialize a duplicate command 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
-
DuplicateCommandHandlerSubscriptionException
public DuplicateCommandHandlerSubscriptionException(String commandName, MessageHandler<? super CommandMessage<?>> initialHandler, MessageHandler<? super CommandMessage<?>> duplicateHandler) Initialize a duplicate command handler subscription exception using the giveninitialHandlerandduplicateHandlerto form a specific message.- Parameters:
commandName- The name of the command for which the duplicate was detectedinitialHandler- the initialMessageHandlerfor which a duplicate was encounteredduplicateHandler- the duplicatedMessageHandler
-
DuplicateCommandHandlerSubscriptionException
Initializes a duplicate command handler subscription exception using the givenmessage.- Parameters:
message- the message describing the exception
-