Class AggregateNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.axonframework.common.AxonException
org.axonframework.common.AxonNonTransientException
org.axonframework.modelling.command.AggregateNotFoundException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AggregateDeletedException
Exception indicating that the an aggregate could not be found in the repository.
- Since:
- 0.4
- Author:
- Allard Buijze
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAggregateNotFoundException(String aggregateIdentifier, String message) Initialize a AggregateNotFoundException for an aggregate identifier by givenaggregateIdentifierand givenmessage.AggregateNotFoundException(String aggregateIdentifier, String message, Throwable cause) Initialize a AggregateNotFoundException for an aggregate identifier by givenaggregateIdentifierand with the givenmessageandcause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the identifier of the aggregate that could not be found.Methods inherited from class org.axonframework.common.AxonNonTransientException
isCauseOfMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AggregateNotFoundException
Initialize a AggregateNotFoundException for an aggregate identifier by givenaggregateIdentifierand givenmessage.- Parameters:
aggregateIdentifier- The identifier of the aggregate that could not be foundmessage- The message describing the cause of the exception
-
AggregateNotFoundException
Initialize a AggregateNotFoundException for an aggregate identifier by givenaggregateIdentifierand with the givenmessageandcause.- Parameters:
aggregateIdentifier- The identifier of the aggregate that could not be foundmessage- The message describing the cause of the exceptioncause- The underlying cause of the exception
-
-
Method Details
-
getAggregateIdentifier
Returns the identifier of the aggregate that could not be found.- Returns:
- the identifier of the aggregate that could not be found
-