/** * @ibm-api */ public AbstractIOException( Throwable nextException, String msg, Object p1, Object p2 ) { this( nextException,format(msg, p1, p2, null, null, null) ); } /**
/** * @ibm-api */ public void printStackTrace(PrintWriter w) { if(hasCause) { super.printStackTrace(w); } else { synchronized(w) { for( Throwable t=this; t!=null; ) { if(t!=this) { w.println("Caused by:"); //$NON-NLS-1$ } if( t instanceof AbstractIOException ) { AbstractIOException te = (AbstractIOException)t; te.superPrintStackTrace(w); t = te.getCause(); } else { t.printStackTrace(w); t = null; } } } } } private void superPrintStackTrace(PrintWriter w) {
/** * @ibm-api */ public static Throwable initCause(Throwable ext, Throwable cause) { if(hasCause) { ext.initCause(cause); } else { if(ext instanceof AbstractIOException) { ((AbstractIOException)ext).initCause(cause); } } return ext; }
/** * @ibm-api */ public static Throwable getCause(Throwable ext) { if(hasCause) { return ext.getCause(); } else { if(ext instanceof AbstractIOException) { ((AbstractIOException)ext).getCause(); } return null; } }
/** * @ibm-api */ public void printStackTrace() { if(hasCause) { super.printStackTrace(); } else { printStackTrace(System.err); } }
/** * @ibm-api */ public void printStackTrace(PrintStream s) { if(hasCause) { super.printStackTrace(s); } else { synchronized(s) { for( Throwable t=this; t!=null; ) { if(t!=this) { s.println("Caused by:"); //$NON-NLS-1$ } if( t instanceof AbstractIOException ) { AbstractIOException te = (AbstractIOException)t; te.superPrintStackTrace(s); t = te.getCause(); } else { t.printStackTrace(s); t = null; } } } } } private void superPrintStackTrace(PrintStream s) {
/** * @ibm-api */ public static Throwable initCause(Throwable ext, Throwable cause) { if(hasCause) { ext.initCause(cause); } else { if(ext instanceof AbstractIOException) { ((AbstractIOException)ext).initCause(cause); } } return ext; }
/** * @ibm-api */ public static Throwable getCause(Throwable ext) { if(hasCause) { return ext.getCause(); } else { if(ext instanceof AbstractIOException) { ((AbstractIOException)ext).getCause(); } return null; } }
/** * @ibm-api */ public void printStackTrace() { if(hasCause) { super.printStackTrace(); } else { printStackTrace(System.err); } }
/** * @ibm-api */ public void printStackTrace(PrintWriter w) { if(hasCause) { super.printStackTrace(w); } else { synchronized(w) { for( Throwable t=this; t!=null; ) { if(t!=this) { w.println("Caused by:"); //$NON-NLS-1$ } if( t instanceof AbstractIOException ) { AbstractIOException te = (AbstractIOException)t; te.superPrintStackTrace(w); t = te.getCause(); } else { t.printStackTrace(w); t = null; } } } } } private void superPrintStackTrace(PrintWriter w) {
/** * @ibm-api */ public AbstractIOException( Throwable nextException, String msg, Object p1, Object p2, Object p3 ) { this( nextException,format(msg, p1, p2, p3, null, null) ); } /**
/** * @ibm-api */ public AbstractIOException(Throwable nextException, String msg) { super(StringUtil.format(msg)); initCause(nextException); } /**
/** * @ibm-api */ public void printStackTrace(PrintStream s) { if(hasCause) { super.printStackTrace(s); } else { synchronized(s) { for( Throwable t=this; t!=null; ) { if(t!=this) { s.println("Caused by:"); //$NON-NLS-1$ } if( t instanceof AbstractIOException ) { AbstractIOException te = (AbstractIOException)t; te.superPrintStackTrace(s); t = te.getCause(); } else { t.printStackTrace(s); t = null; } } } } } private void superPrintStackTrace(PrintStream s) {
/** * @ibm-api */ public AbstractIOException( Throwable nextException, String msg, Object p1, Object p2, Object p3, Object p4, Object p5 ) { this( nextException,format(msg, p1, p2, p3, p4, p5) ); }
/** * @ibm-api */ public AbstractIOException(Throwable nextException, String msg) { super(StringUtil.format(msg)); initCause(nextException); } /**
/** * @ibm-api */ public AbstractIOException( Throwable nextException, String msg, Object p1, Object p2, Object p3, Object p4, Object p5 ) { this( nextException,format(msg, p1, p2, p3, p4, p5) ); }
/** * @ibm-api */ public AbstractIOException( Throwable nextException, String msg, Object p1 ) { this( nextException,format(msg, p1, null, null, null, null) ); } /**
/** * @ibm-api */ public AbstractIOException( Throwable nextException, String msg, Object p1, Object p2, Object p3, Object p4 ) { this( nextException,format(msg, p1, p2, p3, p4, null) ); } /**
/** * @ibm-api */ public AbstractIOException( Throwable nextException, String msg, Object p1, Object p2 ) { this( nextException,format(msg, p1, p2, null, null, null) ); } /**
/** * @ibm-api */ public AbstractIOException( Throwable nextException, String msg, Object p1, Object p2, Object p3, Object p4 ) { this( nextException,format(msg, p1, p2, p3, p4, null) ); } /**