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

public class AggregateNotFoundException extends org.axonframework.common.AxonNonTransientException
Exception indicating that the an aggregate could not be found in the repository.
Since:
0.4
Author:
Allard Buijze
See Also:
  • Constructor Details

    • AggregateNotFoundException

      public AggregateNotFoundException(String aggregateIdentifier, String message)
      Initialize a AggregateNotFoundException for an aggregate identifier by given aggregateIdentifier and given message.
      Parameters:
      aggregateIdentifier - The identifier of the aggregate that could not be found
      message - The message describing the cause of the exception
    • AggregateNotFoundException

      public AggregateNotFoundException(String aggregateIdentifier, String message, Throwable cause)
      Initialize a AggregateNotFoundException for an aggregate identifier by given aggregateIdentifier and with the given message and cause.
      Parameters:
      aggregateIdentifier - The identifier of the aggregate that could not be found
      message - The message describing the cause of the exception
      cause - The underlying cause of the exception
  • Method Details

    • getAggregateIdentifier

      public Object getAggregateIdentifier()
      Returns the identifier of the aggregate that could not be found.
      Returns:
      the identifier of the aggregate that could not be found