java.lang.Object
org.fuin.ddd4j.jaxb.EncryptionKeyIdUnknownExceptionData
- All Implemented Interfaces:
Serializable,org.fuin.ddd4j.core.ExceptionData<org.fuin.ddd4j.core.EncryptionKeyIdUnknownException>,org.fuin.objects4j.common.ToExceptionCapable<org.fuin.ddd4j.core.EncryptionKeyIdUnknownException>,org.fuin.objects4j.common.ValueObject
public class EncryptionKeyIdUnknownExceptionData
extends Object
implements org.fuin.ddd4j.core.ExceptionData<org.fuin.ddd4j.core.EncryptionKeyIdUnknownException>
Stores the data from a
EncryptionKeyIdUnknownException 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.EncryptionKeyIdUnknownExceptionData(@NotNull org.fuin.ddd4j.core.EncryptionKeyIdUnknownException ex) Constructor with all data. -
Method Summary
-
Constructor Details
-
EncryptionKeyIdUnknownExceptionData
protected EncryptionKeyIdUnknownExceptionData()Constructor only for marshalling/unmarshalling. -
EncryptionKeyIdUnknownExceptionData
public EncryptionKeyIdUnknownExceptionData(@NotNull @NotNull org.fuin.ddd4j.core.EncryptionKeyIdUnknownException ex) Constructor with all data.- Parameters:
ex- Exception to copy data from.
-
-
Method Details
-
getDataElement
- Specified by:
getDataElementin interfaceorg.fuin.ddd4j.core.ExceptionData<org.fuin.ddd4j.core.EncryptionKeyIdUnknownException>
-
getMessage
Returns the exception message.- Returns:
- Message.
-
getShortId
Returns the unique short identifier of the contained exception.- Returns:
- Unique and human readable identifier.
-
getKeyId
Returns the key identifier that caused the problem.- Returns:
- Key ID.
-
hashCode
public int hashCode() -
equals
-
toString
-
toException
public org.fuin.ddd4j.core.EncryptionKeyIdUnknownException toException()- Specified by:
toExceptionin interfaceorg.fuin.objects4j.common.ToExceptionCapable<org.fuin.ddd4j.core.EncryptionKeyIdUnknownException>
-