1 8 14 package jfun.yan.lifecycle; 15 16 22 final class Thrower implements ExceptionHandler { 23 public void handle(Throwable th) 24 throws Throwable { 25 throw th; 26 } 27 public String toString() { 28 return getClass().toString(); 29 } 30 private Thrower(){} 31 private static final ExceptionHandler singleton = new Thrower(); 32 public static ExceptionHandler instance(){return singleton;} 33 } 34 | Popular Tags |