Class EntityMissingForInstanceCommandHandlerException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.modelling.entity.EntityMissingForInstanceCommandHandlerException
All Implemented Interfaces:
Serializable

public class EntityMissingForInstanceCommandHandlerException extends RuntimeException
Exception indicating that an instance command handler was invoked for an entity that does not exist.

If this command is valid for the creation of an entity, as well as instance commands, a creational command can be defined for the same Message.type().

Since:
5.0.0
Author:
Mitchell Herrijgers
See Also:
  • Constructor Details

    • EntityMissingForInstanceCommandHandlerException

      public EntityMissingForInstanceCommandHandlerException(@Nonnull CommandMessage command)
      Creates a new exception with the given command.
      Parameters:
      command - The CommandMessage that was handled.