Is there an elegant way to handle exceptions that are thrown in finally block?
finally
For example:
try { // Use the resource. } catch( Excep
I typically use one of the closeQuietly methods in org.apache.commons.io.IOUtils:
closeQuietly
org.apache.commons.io.IOUtils
public static void closeQuietly(OutputStream output) { try { if (output != null) { output.close(); } } catch (IOException ioe) { // ignore } }