1 8 14 package jfun.yan.lifecycle; 15 16 24 public class ExceptionHandlers { 25 private static final ExceptionHandler _printer = 26 new ExceptionPrinter(System.err); 27 32 public static ExceptionHandler printer(){ 33 return _printer; 34 } 35 40 public static ExceptionHandler printer(java.io.PrintStream out){ 41 return new ExceptionPrinter(out); 42 } 43 48 public static ExceptionHandler writer(java.io.PrintWriter out){ 49 return new ExceptionWriter(out); 50 } 51 56 public static ExceptionHandler suppresser(){ 57 return ExceptionSuppresser.instance(); 58 } 59 65 public static ExceptionHandler thrower(){ 66 return Thrower.instance(); 67 } 68 } 69 | Popular Tags |