01: package org.bouncycastle.jce.provider;
02:
03: import org.bouncycastle.jce.exception.ExtException;
04:
05: public class AnnotatedException extends Exception implements
06: ExtException {
07: private Throwable _underlyingException;
08:
09: AnnotatedException(String string, Throwable e) {
10: super (string);
11:
12: _underlyingException = e;
13: }
14:
15: AnnotatedException(String string) {
16: this (string, null);
17: }
18:
19: Throwable getUnderlyingException() {
20: return _underlyingException;
21: }
22:
23: public Throwable getCause() {
24: return _underlyingException;
25: }
26: }
|