Package org.fuin.ddd4j.ddd
Class EncryptionKeyVersionUnknownException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.fuin.ddd4j.ddd.EncryptionKeyVersionUnknownException
-
- All Implemented Interfaces:
Serializable,org.fuin.objects4j.common.ExceptionShortIdentifable,org.fuin.objects4j.common.MarshalInformation<EncryptionKeyVersionUnknownException.Data>
public final class EncryptionKeyVersionUnknownException extends Exception implements org.fuin.objects4j.common.ExceptionShortIdentifable, org.fuin.objects4j.common.MarshalInformation<EncryptionKeyVersionUnknownException.Data>
Signals that the requested version of the encryption key is unknown.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEncryptionKeyVersionUnknownException.DataSpecific exception data.
-
Field Summary
Fields Modifier and Type Field Description static StringELEMENT_NAMEUnique name of the element to use for XML and JSON marshalling/unmarshalling.static StringSHORT_IDUnique short identifier of this exception.
-
Constructor Summary
Constructors Constructor Description EncryptionKeyVersionUnknownException(@NotEmpty String keyVersion)Constructor with all data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionKeyVersionUnknownException.DatagetData()Returns the exception specific data.Class<EncryptionKeyVersionUnknownException.Data>getDataClass()StringgetDataElement()@NotEmpty StringgetKeyVersion()Returns the IV version that caused the problem.StringgetShortId()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
SHORT_ID
public static final String SHORT_ID
Unique short identifier of this exception.- See Also:
- Constant Field Values
-
ELEMENT_NAME
public static final String ELEMENT_NAME
Unique name of the element to use for XML and JSON marshalling/unmarshalling.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EncryptionKeyVersionUnknownException
public EncryptionKeyVersionUnknownException(@NotEmpty @NotEmpty String keyVersion)Constructor with all data.- Parameters:
keyVersion- The key version that caused the problem.
-
-
Method Detail
-
getShortId
public final String getShortId()
- Specified by:
getShortIdin interfaceorg.fuin.objects4j.common.ExceptionShortIdentifable
-
getKeyVersion
@NotEmpty public final @NotEmpty String getKeyVersion()
Returns the IV version that caused the problem.- Returns:
- IV version.
-
getData
public final EncryptionKeyVersionUnknownException.Data getData()
Returns the exception specific data.- Specified by:
getDatain interfaceorg.fuin.objects4j.common.MarshalInformation<EncryptionKeyVersionUnknownException.Data>- Returns:
- Data structure that can be marshalled/unmarshalled.
-
getDataClass
public Class<EncryptionKeyVersionUnknownException.Data> getDataClass()
- Specified by:
getDataClassin interfaceorg.fuin.objects4j.common.MarshalInformation<EncryptionKeyVersionUnknownException.Data>
-
getDataElement
public String getDataElement()
- Specified by:
getDataElementin interfaceorg.fuin.objects4j.common.MarshalInformation<EncryptionKeyVersionUnknownException.Data>
-
-