Class UnknownRoutingKeyException

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

public class UnknownRoutingKeyException extends RuntimeException
Exception indicating that a child entity indicated a routing key that is not known on the incoming message. As such, a child entity could not be resolved to handle the message.

This issue can be resolved by ensuring the routing key specified on the child entity matches the routing key specified on the incoming message. Ensure that the EntityMember.routingKey() points to a valid member of the message, or in its absence that the name of the RoutingKey-annotated member on the child entity does.

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

    • UnknownRoutingKeyException

      public UnknownRoutingKeyException(String message)
      Creates a new exception with the given message.
      Parameters:
      message - The message describing the cause of the exception.