Class EntityIdResolutionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.axonframework.modelling.EntityIdResolutionException
All Implemented Interfaces:
Serializable

public class EntityIdResolutionException extends Exception
Thrown when an EntityIdResolver was unable to determine an id from a given payload.
Since:
5.0.0
Author:
John Hendrikx
See Also:
  • Constructor Details

    • EntityIdResolutionException

      public EntityIdResolutionException(String message)
      Constructs a free-form EntityIdResolutionException with the given message.
      Parameters:
      message - the message to add to the EntityIdResolutionException being constructed
    • EntityIdResolutionException

      public EntityIdResolutionException(Class<?> cls, List<Object> identifiers)
      Constructs a new instance.
      Parameters:
      cls - the payload type, cannot be null
      identifiers - the extracted identifiers, cannot be null, or contain exactly 1 element
      Throws:
      IllegalArgumentException - when any argument is null, or when identifiers contains exactly one element