Class UnknownRoutingKeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.modelling.entity.annotation.UnknownRoutingKeyException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionUnknownRoutingKeyException(String message) Creates a new exception with 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
-
UnknownRoutingKeyException
Creates a new exception with the givenmessage.- Parameters:
message- The message describing the cause of the exception.
-