1 31 package org.pdfbox.exceptions; 32 33 import java.io.PrintStream ; 34 35 41 public class WrappedException extends Exception  42 { 43 private Exception wrapped = null; 44 45 50 public WrappedException( Exception e ) 51 { 52 wrapped = e; 53 } 54 55 60 public String getMessage() 61 { 62 return wrapped.getMessage(); 63 } 64 65 70 public void printStackTrace(PrintStream s) 71 { 72 super.printStackTrace( s ); 73 wrapped.printStackTrace( s ); 74 } 75 } | Popular Tags |