public static void add ( int type , Throwable t ) { // don't add null throwables if ( t == null ) return ; try { fireOnThrowable ( type , t ) ; } catch ( Throwable bad ) { // don't let these propagate, that could introduce unwanted side-effects System . err . println ( "Unable to handle throwable: " + t + " because of:" ) ; bad . printStackTrace ( ) ; } }
Add a throwable that is to be handled .