public static void safelyIgnoreException ( Throwable t ) { if ( t instanceof ThreadDeath ) { throw ( ThreadDeath ) t ; } if ( t instanceof OutOfMemoryError ) { throw ( OutOfMemoryError ) t ; } }
Safely Ignore a Throwable or rethrow if it is a Throwable that should not be ignored .