Home | History | Annotate | Download | only in provider
      1 package org.bouncycastle.jce.provider;
      2 
      3 import org.bouncycastle.jce.exception.ExtException;
      4 
      5 public class AnnotatedException
      6     extends Exception
      7     implements ExtException
      8 {
      9     private Throwable _underlyingException;
     10 
     11     AnnotatedException(String string, Throwable e)
     12     {
     13         super(string);
     14 
     15         _underlyingException = e;
     16     }
     17 
     18     AnnotatedException(String string)
     19     {
     20         this(string, null);
     21     }
     22 
     23     Throwable getUnderlyingException()
     24     {
     25         return _underlyingException;
     26     }
     27 
     28     public Throwable getCause()
     29     {
     30         return _underlyingException;
     31     }
     32 }
     33