01: package org.bouncycastle.openpgp;
02:
03: /**
04: * generic exception class for PGP encoding/decoding problems
05: */
06: public class PGPException extends Exception {
07: Exception underlying;
08:
09: public PGPException(String message) {
10: super (message);
11: }
12:
13: public PGPException(String message, Exception underlying) {
14: super (message);
15: this .underlying = underlying;
16: }
17:
18: public Exception getUnderlyingException() {
19: return underlying;
20: }
21:
22: public Throwable getCause() {
23: return underlying;
24: }
25: }
|