AnnotatedException.java revision e6bf3e8dfa2804891a82075cb469b736321b4827
1package org.bouncycastle.jce.provider;
2
3import org.bouncycastle.jce.exception.ExtException;
4
5public class AnnotatedException
6    extends Exception
7    implements ExtException
8{
9    private Throwable _underlyingException;
10
11    AnnotatedException(String string, Throwable e)
12    {
13        super(string);
14
15        _underlyingException = e;
16    }
17
18    AnnotatedException(String string)
19    {
20        this(string, null);
21    }
22
23    Throwable getUnderlyingException()
24    {
25        return _underlyingException;
26    }
27
28    public Throwable getCause()
29    {
30        return _underlyingException;
31    }
32}
33