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
*/
private void start (final String args[]) {
this.getLogger().info("Program is started."); //NOI18N
+ try {
+ // Init properties file
+ this.initProperties();
+ } catch (final IOException ex) {
+ // Something bad happened
+ this.abortProgramWithException(ex);
+ }
// Parse arguments
this.parseArguments(args);
// 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);
+ }
}
/**