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