aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/pkix/src/main/java/org/spongycastle/cms/CMSStreamException.java
blob: 655503539d193dcc235ff812c14590c0bf552971 (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.spongycastle.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;
    }
}