java.lang.Object
java.lang.Throwable
java.lang.Exception
org.fuin.ddd4j.core.DuplicateEncryptionKeyIdException
- All Implemented Interfaces:
Serializable,org.fuin.objects4j.common.ExceptionShortIdentifable
public final class DuplicateEncryptionKeyIdException
extends Exception
implements org.fuin.objects4j.common.ExceptionShortIdentifable
Signals that the encryption key identifier already exists and cannot be created a second time.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDuplicateEncryptionKeyIdException(@NotEmpty String keyId) Constructor with all data. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ELEMENT_NAME
Unique name of the element to use for XML and JSON marshalling/unmarshalling.- See Also:
-
SHORT_ID
Unique short identifier of this exception.- See Also:
-
-
Constructor Details
-
DuplicateEncryptionKeyIdException
Constructor with all data.- Parameters:
keyId- The key identifier that caused the problem.
-
-
Method Details
-
getShortId
- Specified by:
getShortIdin interfaceorg.fuin.objects4j.common.ExceptionShortIdentifable
-
getKeyId
Returns the key identifier that caused the problem.- Returns:
- Key ID.
-