1 29 package net.sourceforge.groboutils.pmti.v1; 30 31 32 import net.sourceforge.groboutils.util.throwable.v1.IChainableException; 33 import net.sourceforge.groboutils.util.throwable.v1.ChainableExceptionHelper; 34 35 import java.io.IOException ; 36 import java.io.PrintStream ; 37 import java.io.PrintWriter ; 38 39 40 48 public class ProblemManagerException extends IOException 49 implements IChainableException 50 { 51 54 private ChainableExceptionHelper ceh; 55 56 57 public ProblemManagerException() 58 { 59 super(); 60 this.ceh = new ChainableExceptionHelper( this ); 61 } 62 63 64 public ProblemManagerException( String message ) 65 { 66 super( message ); 67 this.ceh = new ChainableExceptionHelper( this ); 68 } 69 70 71 public ProblemManagerException( Throwable cause ) 72 { 73 super(); 74 this.ceh = new ChainableExceptionHelper( this, cause ); 75 } 76 77 78 public ProblemManagerException( Throwable cause, String message ) 79 { 80 this( message, cause ); 81 } 82 83 84 public ProblemManagerException( String message, Throwable cause ) 85 { 86 super( message ); 87 this.ceh = new ChainableExceptionHelper( this, cause ); 88 } 89 90 91 114 public Throwable getCause() 115 { 116 return this.ceh.getCause(); 117 } 118 119 120 144 public synchronized Throwable initCause( Throwable cause ) 145 { 146 return this.ceh.initCause( cause ); 147 } 148 149 150 156 public void printStackTrace( PrintStream ps ) 157 { 158 this.ceh.printStackTrace( ps ); 159 } 160 161 162 163 169 public void printStackTrace( PrintWriter pw ) 170 { 171 this.ceh.printStackTrace( pw ); 172 } 173 } 174 175 | Popular Tags |