summaryrefslogtreecommitdiffstats
path: root/bcprov/src/main/java/org/bouncycastle/crypto/io/CipherIOException.java
blob: beeb60bcdd232f0c53e083e9172fa0da540155d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.bouncycastle.crypto.io;

import java.io.IOException;

/**
 * {@link IOException} wrapper around an exception indicating a problem with the use of a cipher.
 */
public class CipherIOException
    extends IOException
{
    private static final long serialVersionUID = 1L;

    private final Throwable cause;

    public CipherIOException(String message, Throwable cause)
    {
        super(message);

        this.cause = cause;
    }

    public Throwable getCause()
    {
        return cause;
    }
}