public class DuplicateCommandHandlerSubscriptionException extends AxonNonTransientException
Constructor and Description |
---|
DuplicateCommandHandlerSubscriptionException(String message)
Initializes a duplicate command handler subscription exception using the given
message . |
DuplicateCommandHandlerSubscriptionException(String commandName,
MessageHandler<? super CommandMessage<?>> initialHandler,
MessageHandler<? super CommandMessage<?>> duplicateHandler)
Initialize a duplicate command handler subscription exception using the given
initialHandler and duplicateHandler to form a specific message. |
isCauseOf
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DuplicateCommandHandlerSubscriptionException(String commandName, MessageHandler<? super CommandMessage<?>> initialHandler, MessageHandler<? super CommandMessage<?>> duplicateHandler)
initialHandler
and duplicateHandler
to form a specific message.commandName
- The name of the command for which the duplicate was detectedinitialHandler
- the initial MessageHandler
for which a duplicate was encounteredduplicateHandler
- the duplicated MessageHandler
public DuplicateCommandHandlerSubscriptionException(String message)
message
.message
- the message describing the exceptionCopyright © 2010–2020. All rights reserved.