question: static Throwable delete ( File file ) { try { Files . delete ( file . toPath ( ) ) ; return null ; } catch ( SecurityException e ) { throw e ; } catch ( Throwable other ) { return other ; } }
target:  This simulates File.delete exception-wise, since this class has some strange behavior with it. The only difference is it returns null on success, throws SecurityException on SecurityException, otherwise returns Throwable preventing deletion (instead of false), for additional information.