Module org.fuin.ddd4j.jackson
Package org.fuin.ddd4j.jackson
Class AggregateVersionConflictExceptionData
java.lang.Object
org.fuin.ddd4j.jackson.AbstractAggregateExceptionData<org.fuin.ddd4j.core.AggregateVersionConflictException>
org.fuin.ddd4j.jackson.AggregateVersionConflictExceptionData
- All Implemented Interfaces:
Serializable,org.fuin.ddd4j.core.ExceptionData<org.fuin.ddd4j.core.AggregateVersionConflictException>,org.fuin.objects4j.common.ToExceptionCapable<org.fuin.ddd4j.core.AggregateVersionConflictException>,org.fuin.objects4j.common.ValueObject
public final class AggregateVersionConflictExceptionData
extends AbstractAggregateExceptionData<org.fuin.ddd4j.core.AggregateVersionConflictException>
Stores the data from a
AggregateVersionConflictException for marshalling and allows recreating it after unmarshalling.
The idea is to transport an exception from the server to the client (without stack trace) and recreate it to be thrown on the client.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor only for marshalling/unmarshalling.AggregateVersionConflictExceptionData(@NotNull org.fuin.ddd4j.core.AggregateVersionConflictException ex) Constructor with all data. -
Method Summary
Methods inherited from class org.fuin.ddd4j.jackson.AbstractAggregateExceptionData
getAggregateId, getAggregateType, getMessage
-
Constructor Details
-
AggregateVersionConflictExceptionData
protected AggregateVersionConflictExceptionData()Constructor only for marshalling/unmarshalling. -
AggregateVersionConflictExceptionData
public AggregateVersionConflictExceptionData(@NotNull @NotNull org.fuin.ddd4j.core.AggregateVersionConflictException ex) Constructor with all data.- Parameters:
ex- Exception to copy data from.
-
-
Method Details
-
getDataElement
-
getShortId
Returns the unique short identifier of the contained exception.- Returns:
- Unique and human readable identifier.
-
hashCode
public int hashCode() -
equals
-
toString
-
toException
public org.fuin.ddd4j.core.AggregateVersionConflictException toException()
-