1 package org.bouncycastle.openssl; 2 3 import java.io.IOException; 4 5 public class EncryptionException 6 extends IOException 7 { 8 private Throwable cause; 9 10 public EncryptionException(String msg) 11 { 12 super(msg); 13 } 14 15 public EncryptionException(String msg, Throwable ex) 16 { 17 super(msg); 18 this.cause = ex; 19 } 20 21 public Throwable getCause() 22 { 23 return cause; 24 } 25 }