diff options
Diffstat (limited to 'libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/InvalidCipherTextException.java')
-rw-r--r-- | libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/InvalidCipherTextException.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/InvalidCipherTextException.java b/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/InvalidCipherTextException.java new file mode 100644 index 000000000..802683fc3 --- /dev/null +++ b/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/InvalidCipherTextException.java @@ -0,0 +1,40 @@ +package org.spongycastle.crypto; + +/** + * this exception is thrown whenever we find something we don't expect in a + * message. + */ +public class InvalidCipherTextException + extends CryptoException +{ + /** + * base constructor. + */ + public InvalidCipherTextException() + { + } + + /** + * create a InvalidCipherTextException with the given message. + * + * @param message the message to be carried with the exception. + */ + public InvalidCipherTextException( + String message) + { + super(message); + } + + /** + * create a InvalidCipherTextException with the given message. + * + * @param message the message to be carried with the exception. + * @param cause the root cause of the exception. + */ + public InvalidCipherTextException( + String message, + Throwable cause) + { + super(message, cause); + } +} |