1package org.bouncycastle.crypto;
2
3/**
4 * this exception is thrown whenever we find something we don't expect in a
5 * message.
6 */
7public class InvalidCipherTextException
8    extends CryptoException
9{
10    /**
11     * base constructor.
12     */
13    public InvalidCipherTextException()
14    {
15    }
16
17    /**
18     * create a InvalidCipherTextException with the given message.
19     *
20     * @param message the message to be carried with the exception.
21     */
22    public InvalidCipherTextException(
23        String  message)
24    {
25        super(message);
26    }
27
28    /**
29     * create a InvalidCipherTextException with the given message.
30     *
31     * @param message the message to be carried with the exception.
32     * @param cause the root cause of the exception.
33     */
34    public InvalidCipherTextException(
35        String  message,
36        Throwable cause)
37    {
38        super(message, cause);
39    }
40}
41