1 package org.bouncycastle.openssl; 2 3 import java.io.IOException; 4 5 public class PEMException 6 extends IOException 7 { 8 Exception underlying; 9 10 public PEMException( 11 String message) 12 { 13 super(message); 14 } 15 16 public PEMException( 17 String message, 18 Exception underlying) 19 { 20 super(message); 21 this.underlying = underlying; 22 } 23 24 public Exception getUnderlyingException() 25 { 26 return underlying; 27 } 28 29 30 public Throwable getCause() 31 { 32 return underlying; 33 } 34 } 35