Class EntityAlreadyExistsForCreationalCommandHandlerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.modelling.entity.EntityAlreadyExistsForCreationalCommandHandlerException
- All Implemented Interfaces:
Serializable
Exception indicating that a creational command handler was invoked for an entity that already exists.
If this command is valid for instances of the entity, as well as creational commands, an instance command can be
defined for the same Message.type().
- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntityAlreadyExistsForCreationalCommandHandlerException(CommandMessage command, Object existingEntity) Creates a new exception with the givencommandandexistingEntity. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EntityAlreadyExistsForCreationalCommandHandlerException
public EntityAlreadyExistsForCreationalCommandHandlerException(@Nonnull CommandMessage command, @Nonnull Object existingEntity) Creates a new exception with the givencommandandexistingEntity.- Parameters:
command- TheCommandMessagethat was handled.existingEntity- The existing entity that was found.
-