Home | History | Annotate | Download | only in pem
      1 package org.bouncycastle.util.io.pem;
      2 
      3 import java.io.IOException;
      4 
      5 /**
      6  * Exception thrown on failure to generate a PEM object.
      7  */
      8 public class PemGenerationException
      9     extends IOException
     10 {
     11     private Throwable cause;
     12 
     13     public PemGenerationException(String message, Throwable cause)
     14     {
     15         super(message);
     16         this.cause = cause;
     17     }
     18 
     19     public PemGenerationException(String message)
     20     {
     21         super(message);
     22     }
     23 
     24     public Throwable getCause()
     25     {
     26         return cause;
     27     }
     28 }
     29