summaryrefslogtreecommitdiffstats
path: root/bcpkix/src/main/java/org/bouncycastle/cms/CMSStreamException.java
blob: fff00489adc9a1ea49f40651951998b21bda16b8 (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.cms;

import java.io.IOException;

public class CMSStreamException
    extends IOException
{
    private final Throwable underlying;

    CMSStreamException(String msg)
    {
        super(msg);
        this.underlying = null;
    }

    CMSStreamException(String msg, Throwable underlying)
    {
        super(msg);
        this.underlying = underlying;
    }

    public Throwable getCause()
    {
        return underlying;
    }
}