]> git.mxchange.org Git - jaddressbook-lib.git/blobdiff - Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java
Fixes for missing throws statements (because jcore has changed).
[jaddressbook-lib.git] / Addressbook / src / org / mxchange / addressbook / client / gui / SwingClient.java
index be62260e3ad3660d7b7869e6a2d8abd270e7b0bb..8a27f24c3d6e3f01ed730c41119f8f2e950f24ca 100644 (file)
  */
 package org.mxchange.addressbook.client.gui;
 
-import org.mxchange.jcore.client.gui.ClientFrame;
+import java.sql.SQLException;
 import org.mxchange.addressbook.client.AddressbookClient;
 import org.mxchange.addressbook.client.BaseAddressbookClient;
 import org.mxchange.addressbook.menu.Menu;
 import org.mxchange.addressbook.menu.item.SelectableMenuItem;
 import org.mxchange.jcore.application.Application;
+import org.mxchange.jcore.client.gui.ClientFrame;
 import org.mxchange.jcore.contact.Contact;
 import org.mxchange.jcore.contact.Gender;
 import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException;
 import org.mxchange.jcore.exceptions.UnhandledUserChoiceException;
+import org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException;
 
 /**
  *
@@ -177,13 +179,13 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
                // Debug message
                this.getLogger().trace("CALLED!"); //NOI18N
 
-               // Init contact manager here
-               this.initContactManager();
-
                try {
+                       // Init contact manager here
+                       this.initContactManager();
+
                        // Init frame
                        this.frame.init();
-               } catch (final FrameAlreadyInitializedException ex) {
+               } catch (final FrameAlreadyInitializedException | UnsupportedDatabaseBackendException | SQLException ex) {
                        // Abort program
                        this.abortProgramWithException(ex);
                }