Class AggregateVersionNotFoundExceptionData

java.lang.Object
org.fuin.ddd4j.jaxb.AbstractAggregateExceptionData<EX>
org.fuin.ddd4j.jaxb.AbstractVersionedAggregateExceptionData<org.fuin.ddd4j.core.AggregateVersionNotFoundException>
org.fuin.ddd4j.jaxb.AggregateVersionNotFoundExceptionData
All Implemented Interfaces:
Serializable, org.fuin.ddd4j.core.ExceptionData<org.fuin.ddd4j.core.AggregateVersionNotFoundException>, org.fuin.objects4j.common.ToExceptionCapable<org.fuin.ddd4j.core.AggregateVersionNotFoundException>, org.fuin.objects4j.common.ValueObject

public final class AggregateVersionNotFoundExceptionData extends AbstractVersionedAggregateExceptionData<org.fuin.ddd4j.core.AggregateVersionNotFoundException>
Stores the data from a AggregateVersionNotFoundException 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 Details

    • AggregateVersionNotFoundExceptionData

      protected AggregateVersionNotFoundExceptionData()
      Constructor only for marshalling/unmarshalling.
    • AggregateVersionNotFoundExceptionData

      public AggregateVersionNotFoundExceptionData(@NotNull @NotNull org.fuin.ddd4j.core.AggregateVersionNotFoundException ex)
      Constructor with all data.
      Parameters:
      ex - Exception to copy data from.
  • Method Details

    • getDataElement

      public String getDataElement()
    • getShortId

      public String getShortId()
      Returns the unique short identifier of the contained exception.
      Returns:
      Unique and human readable identifier.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toException

      public org.fuin.ddd4j.core.AggregateVersionNotFoundException toException()