Class EntityMissingForInstanceCommandHandlerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonNonTransientException
org.axonframework.modelling.repository.EntityNotFoundException
org.axonframework.modelling.entity.EntityMissingForInstanceCommandHandlerException
- All Implemented Interfaces:
Serializable
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().
This is a specialization of EntityNotFoundException: no business identifier is available at this level, so
EntityNotFoundException.identifier() returns the Message.type() of the command being handled
instead.
- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new exception with the givencommand. -
Method Summary
Methods inherited from class org.axonframework.modelling.repository.EntityNotFoundException
identifierMethods 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
-
EntityMissingForInstanceCommandHandlerException
Creates a new exception with the givencommand.- Parameters:
command- TheCommandMessagethat was handled.
-