1package org.bouncycastle.cms; 2 3public class CMSException 4 extends Exception 5{ 6 Exception e; 7 8 public CMSException( 9 String msg) 10 { 11 super(msg); 12 } 13 14 public CMSException( 15 String msg, 16 Exception e) 17 { 18 super(msg); 19 20 this.e = e; 21 } 22 23 public Exception getUnderlyingException() 24 { 25 return e; 26 } 27 28 public Throwable getCause() 29 { 30 return e; 31 } 32} 33