public class AggregateNotFoundException extends AxonNonTransientException
Constructor and Description |
---|
AggregateNotFoundException(String aggregateIdentifier,
String message)
Initialize a AggregateNotFoundException for an aggregate identifier by given
aggregateIdentifier
and given message . |
AggregateNotFoundException(String aggregateIdentifier,
String message,
Throwable cause)
Initialize a AggregateNotFoundException for an aggregate identifier by given
aggregateIdentifier
and
with the given message and cause . |
Modifier and Type | Method and Description |
---|---|
Object |
getAggregateIdentifier()
Returns the identifier of the aggregate that could not be found.
|
isCauseOf
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AggregateNotFoundException(String aggregateIdentifier, String message)
aggregateIdentifier
and given message
.aggregateIdentifier
- The identifier of the aggregate that could not be foundmessage
- The message describing the cause of the exceptionpublic AggregateNotFoundException(String aggregateIdentifier, String message, Throwable cause)
aggregateIdentifier
and
with the given message
and cause
.aggregateIdentifier
- The identifier of the aggregate that could not be foundmessage
- The message describing the cause of the exceptioncause
- The underlying cause of the exceptionpublic Object getAggregateIdentifier()
Copyright © 2010–2019. All rights reserved.