Esiste un modo elegante per gestire le eccezioni lanciate in finallyblocco?
Per esempio:
try {
// Use the resource.
}
catch( Exception ex ) {
// Problem with the resource.
}
finally {
try{
resource.close();
}
catch( Exception ex ) {
// Could not close the resource?
}
}
Come eviti la try/ catchnel finallyblocco?