Class ChildAmbiguityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.modelling.entity.child.ChildAmbiguityException
- All Implemented Interfaces:
Serializable
Exception indicating that multiple child entities of a parent entity are able to handle the same command. This
happens if multiple
EntityChildMetamodel.supportedCommands() contain the same
QualifiedName, as well as both child entities returning true for
EntityChildMetamodel.canHandle(CommandMessage, Object, ProcessingContext), indicating that they have an active
child entity that can handle the command.
When this happens, make sure the CommandTargetResolver is configured correctly to resolve the child entity
that should handle the command.
- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChildAmbiguityException(String message) Initializes theChildAmbiguityExceptionwith the givenmessage. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ChildAmbiguityException
Initializes theChildAmbiguityExceptionwith the givenmessage.- Parameters:
message- The message describing the cause of this exception.
-