1 package org.bouncycastle.jce.exception;
2 
3 import org.bouncycastle.jce.cert.CertPath;
4 import org.bouncycastle.jce.cert.CertPathBuilderException;
5 
6 public class ExtCertPathBuilderException
7     extends CertPathBuilderException
8     implements ExtException
9 {
10     private Throwable cause;
11 
ExtCertPathBuilderException(String message, Throwable cause)12     public ExtCertPathBuilderException(String message, Throwable cause)
13     {
14         super(message);
15         this.cause = cause;
16     }
17 
ExtCertPathBuilderException(String msg, Throwable cause, CertPath certPath, int index)18     public ExtCertPathBuilderException(String msg, Throwable cause,
19         CertPath certPath, int index)
20     {
21         super(msg, cause);
22         this.cause = cause;
23     }
24 
getCause()25     public Throwable getCause()
26     {
27         return cause;
28     }
29 }
30