blob: 220672ac6485ca0f05c9ba5159acaac987ee3ab3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
package org.spongycastle.openpgp;
/**
* generic exception class for PGP encoding/decoding problems
*/
public class PGPException
extends Exception
{
Exception underlying;
public PGPException(
String message)
{
super(message);
}
public PGPException(
String message,
Exception underlying)
{
super(message);
this.underlying = underlying;
}
public Exception getUnderlyingException()
{
return underlying;
}
public Throwable getCause()
{
return underlying;
}
}
|