aboutsummaryrefslogtreecommitdiff
path: root/crypto-common/src/main/kotlin
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-03-25 12:16:52 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-03-25 12:26:01 +0530
commit1e7401265676e79afbffb0396a0605726b93509e (patch)
treeec54a8775ad22fbe542192731d52d13f0c344174 /crypto-common/src/main/kotlin
parente2900c26de9e9c96312ad860bce07383692760d1 (diff)
fix: remove NoKeysProvided error
We're making this invariant impossible in the code paths that hit it
Diffstat (limited to 'crypto-common/src/main/kotlin')
-rw-r--r--crypto-common/src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt3
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto-common/src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt b/crypto-common/src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt
index 81bdf95f..cb8980bd 100644
--- a/crypto-common/src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt
+++ b/crypto-common/src/main/kotlin/app/passwordstore/crypto/errors/CryptoException.kt
@@ -37,8 +37,5 @@ public sealed class CryptoHandlerException(message: String? = null, cause: Throw
/** The passphrase provided for decryption was incorrect. */
public class IncorrectPassphraseException(cause: Throwable) : CryptoHandlerException(null, cause)
-/** No keys were provided for encryption. */
-public class NoKeysProvided(message: String?) : CryptoHandlerException(message, null)
-
/** An unexpected error that cannot be mapped to a known type. */
public class UnknownError(cause: Throwable) : CryptoHandlerException(null, cause)