1b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallampackage org.bouncycastle.crypto;
2b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam
3b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam/**
4b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam * this exception is thrown whenever we find something we don't expect in a
5b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam * message.
6b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam */
7b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallampublic class InvalidCipherTextException
8b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    extends CryptoException
9b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam{
10b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    /**
11b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam     * base constructor.
12b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam     */
13b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    public InvalidCipherTextException()
14b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    {
15b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    }
16b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam
17b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    /**
18b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam     * create a InvalidCipherTextException with the given message.
19b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam     *
20b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam     * @param message the message to be carried with the exception.
21b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam     */
22b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    public InvalidCipherTextException(
23b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam        String  message)
24b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    {
25b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam        super(message);
26b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam    }
2770c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom
2870c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom    /**
2970c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom     * create a InvalidCipherTextException with the given message.
3070c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom     *
3170c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom     * @param message the message to be carried with the exception.
3270c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom     * @param cause the root cause of the exception.
3370c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom     */
3470c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom    public InvalidCipherTextException(
3570c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom        String  message,
3670c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom        Throwable cause)
3770c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom    {
3870c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom        super(message, cause);
3970c8287138e69a98c2f950036f9f703ee37228c8Brian Carlstrom    }
40b61a96e7ef1a78acf013bbf08fe537e5b5f129caPeter Hallam}
41