Class ChildAmbiguityException

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

public class ChildAmbiguityException extends RuntimeException
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 Details

    • ChildAmbiguityException

      public ChildAmbiguityException(@Nonnull String message)
      Initializes the ChildAmbiguityException with the given message.
      Parameters:
      message - The message describing the cause of this exception.