1package org.bouncycastle.cms;
2
3public class CMSRuntimeException
4    extends RuntimeException
5{
6    Exception   e;
7
8    public CMSRuntimeException(
9        String name)
10    {
11        super(name);
12    }
13
14    public CMSRuntimeException(
15        String name,
16        Exception e)
17    {
18        super(name);
19
20        this.e = e;
21    }
22
23    public Exception getUnderlyingException()
24    {
25        return e;
26    }
27
28    public Throwable getCause()
29    {
30        return e;
31    }
32}
33