public final class AggregateVersionNotFoundException
extends org.fuin.objects4j.common.AbstractJaxbMarshallableException
implements org.fuin.objects4j.common.ExceptionShortIdentifable
| Modifier | Constructor and Description |
|---|---|
protected |
AggregateVersionNotFoundException()
JAX-B constructor.
|
|
AggregateVersionNotFoundException(@NotNull EntityType aggregateType,
@NotNull AggregateRootId aggregateId,
int version)
Constructor with all data.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getAggregateId()
Returns the unique identifier of the aggregate.
|
@NotNull java.lang.String |
getAggregateType()
Returns the type of the aggregate.
|
java.lang.String |
getShortId() |
int |
getVersion()
Returns the requested version.
|
afterMarshal, afterUnmarshal, beforeMarshalprotected AggregateVersionNotFoundException()
public AggregateVersionNotFoundException(@NotNull
@NotNull EntityType aggregateType,
@NotNull
@NotNull AggregateRootId aggregateId,
int version)
aggregateType - Type of the aggregate.aggregateId - Unique identifier of the aggregate.version - Requested version.public final java.lang.String getShortId()
getShortId in interface org.fuin.objects4j.common.ExceptionShortIdentifable@NotNull public final @NotNull java.lang.String getAggregateType()
@NotNull public final @NotNull java.lang.String getAggregateId()
public final int getVersion()
Copyright © 2019 fuin.org (Germany). All Rights Reserved.