public static File writeObjectToTempFileNoExceptions ( Object o , String filename ) { try { return writeObjectToTempFile ( o , filename ) ; } catch ( Exception e ) { System . err . println ( "Error writing object to file " + filename ) ; e . printStackTrace ( ) ; return null ; } }
Write object to a temp file and ignore exceptions .