Package org.axonframework.modelling
Class EntityIdResolutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.axonframework.modelling.EntityIdResolutionException
- All Implemented Interfaces:
Serializable
Thrown when an
EntityIdResolver was unable to determine an id from a given payload.- Since:
- 5.0.0
- Author:
- John Hendrikx
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEntityIdResolutionException(Class<?> cls, List<Object> identifiers) Constructs a new instance.EntityIdResolutionException(String message) Constructs a free-formEntityIdResolutionExceptionwith 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
-
EntityIdResolutionException
Constructs a free-formEntityIdResolutionExceptionwith the givenmessage.- Parameters:
message- the message to add to theEntityIdResolutionExceptionbeing constructed
-
EntityIdResolutionException
Constructs a new instance.- Parameters:
cls- the payload type, cannot benullidentifiers- the extracted identifiers, cannot benull, or contain exactly 1 element- Throws:
IllegalArgumentException- when any argument isnull, or whenidentifierscontains exactly one element
-