java.lang.Object
org.fuin.ddd4j.jsonb.AbstractAggregateExceptionData<EX>
org.fuin.ddd4j.jsonb.AbstractVersionedAggregateExceptionData<org.fuin.ddd4j.core.AggregateAlreadyExistsException>
org.fuin.ddd4j.jsonb.AggregateAlreadyExistsExceptionData
- All Implemented Interfaces:
Serializable,org.fuin.ddd4j.core.ExceptionData<org.fuin.ddd4j.core.AggregateAlreadyExistsException>,org.fuin.objects4j.common.ToExceptionCapable<org.fuin.ddd4j.core.AggregateAlreadyExistsException>,org.fuin.objects4j.common.ValueObject
public final class AggregateAlreadyExistsExceptionData
extends AbstractVersionedAggregateExceptionData<org.fuin.ddd4j.core.AggregateAlreadyExistsException>
Stores the data from a
AggregateAlreadyExistsException 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.AggregateAlreadyExistsExceptionData(org.fuin.ddd4j.core.AggregateAlreadyExistsException ex) Constructor with exception. -
Method Summary
Methods inherited from class org.fuin.ddd4j.jsonb.AbstractVersionedAggregateExceptionData
getVersionMethods inherited from class org.fuin.ddd4j.jsonb.AbstractAggregateExceptionData
getAggregateId, getAggregateType, getMessage
-
Constructor Details
-
AggregateAlreadyExistsExceptionData
protected AggregateAlreadyExistsExceptionData()Constructor only for marshalling/unmarshalling. -
AggregateAlreadyExistsExceptionData
public AggregateAlreadyExistsExceptionData(org.fuin.ddd4j.core.AggregateAlreadyExistsException ex) Constructor with exception.- Parameters:
ex- Exception to copy data from.
-
-
Method Details
-
getDataElement
-
getShortId
Returns the unique short identifier od the exception.- Returns:
- Unique and human readable identifer.
-
hashCode
public int hashCode() -
equals
-
toString
-
toException
public org.fuin.ddd4j.core.AggregateAlreadyExistsException toException()
-