diff options
Diffstat (limited to 'crypto-common/src/main/kotlin/dev/msfjarvis/aps/data/crypto/CryptoException.kt')
| -rw-r--r-- | crypto-common/src/main/kotlin/dev/msfjarvis/aps/data/crypto/CryptoException.kt | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/crypto-common/src/main/kotlin/dev/msfjarvis/aps/data/crypto/CryptoException.kt b/crypto-common/src/main/kotlin/dev/msfjarvis/aps/data/crypto/CryptoException.kt deleted file mode 100644 index 6a73d381..00000000 --- a/crypto-common/src/main/kotlin/dev/msfjarvis/aps/data/crypto/CryptoException.kt +++ /dev/null @@ -1,19 +0,0 @@ -package dev.msfjarvis.aps.data.crypto - -public sealed class CryptoException(message: String? = null) : Exception(message) - -public sealed class KeyPairException(message: String? = null) : CryptoException(message) { - public object PrivateKeyUnavailableException : - KeyPairException("Key object does not have a private sub-key") -} - -public sealed class KeyManagerException(message: String? = null) : CryptoException(message) { - public object NoKeysAvailableException : KeyManagerException("No keys were found") - public object KeyDirectoryUnavailableException : - KeyManagerException("Key directory does not exist") - public object KeyDeletionFailedException : KeyManagerException("Couldn't delete the key file") - public class KeyNotFoundException(keyId: String) : - KeyManagerException("No key found with id: $keyId") - public class KeyAlreadyExistsException(keyId: String) : - KeyManagerException("Pre-existing key was found for $keyId but 'replace' is set to false") -} |
