package org.mxchange.addressbook.application;
import java.io.IOException;
+import java.sql.SQLException;
import java.text.MessageFormat;
import org.mxchange.addressbook.BaseAddressbookSystem;
import org.mxchange.addressbook.client.AddressbookClient;
* Shuts down the application.
*/
@Override
- public void doShutdown () {
+ public void doShutdown () throws SQLException, IOException {
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
// Good bye, but this should not be reached ...
this.getLogger().warn("Unusual exit reached."); //NOI18N
- this.doShutdown();
+ try {
+ this.doShutdown();
+ } catch (final SQLException | IOException ex) {
+ this.abortProgramWithException(ex);
+ }
}
/**
*/
package org.mxchange.addressbook.client.console;
+import java.io.IOException;
import java.sql.SQLException;
import java.text.MessageFormat;
import java.util.Arrays;
* Shutdown this client
*/
@Override
- public void doShutdown () {
+ public void doShutdown () throws SQLException, IOException {
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
*/
package org.mxchange.addressbook.client.gui;
+import java.io.IOException;
import java.sql.SQLException;
import org.mxchange.addressbook.client.AddressbookClient;
import org.mxchange.addressbook.client.BaseAddressbookClient;
* Shuts down this client
*/
@Override
- public void doShutdown () {
+ public void doShutdown () throws SQLException, IOException {
// Debug message
this.getLogger().trace("CALLED!"); //NOI18N