Class TargetEntityIdMemberMismatchException

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

public class TargetEntityIdMemberMismatchException extends RuntimeException
Exception indicating that while using the PropertyBasedEntityIdResolver the indicated field could not be found.

This indicates a mismatch between the property configured in the InjectEntity.idProperty() and the actual payload class.

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

    • TargetEntityIdMemberMismatchException

      public TargetEntityIdMemberMismatchException(@Nonnull String fieldName, @Nonnull Class<?> payloadClass)
      Initialize the exception with the given fieldName that was not found in the payload of type payloadClass.