package test; import java.io.PrintStream; import java.io.PrintWriter; public class TestException extends Exception { TestException (String m){ super(m); } public void printStackTrace(){ System.err.println(this.getMessage()); } public void printStackTrace(PrintStream s){ this.printStackTrace(); } public void printStackTrace(PrintWriter s){ this.printStackTrace(); } }