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