1package org.bouncycastle.cert;
2
3/**
4 * General checked Exception thrown in the cert package and its sub-packages.
5 */
6public class CertException
7    extends Exception
8{
9    private Throwable cause;
10
11    public CertException(String msg, Throwable cause)
12    {
13        super(msg);
14
15        this.cause = cause;
16    }
17
18    public CertException(String msg)
19    {
20        super(msg);
21    }
22
23    public Throwable getCause()
24    {
25        return cause;
26    }
27}
28