manager.doDeleteOtherAddress();
break;
- case '0': // Program exit
+ case '0': {
+ try {
+ // Program exit
this.getApplication().doShutdown();
+ } catch (final SQLException | IOException ex) {
+ this.abortProgramWithException(ex);
+ }
+ }
break;
default:
import java.awt.event.MouseEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
+import java.io.IOException;
+import java.sql.SQLException;
import java.text.MessageFormat;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
}
// Call shutdown method
- this.getClient().getApplication().doShutdown();
+ try {
+ this.getClient().getApplication().doShutdown();
+ } catch (final SQLException | IOException ex) {
+ // Abort here
+ this.abortProgramWithException(ex);
+ }
// Trace message
this.getLogger().trace("EXIT!"); //NOI18N