]> git.mxchange.org Git - addressbook-swing.git/commitdiff
Added catching of some newly thrown exceptions
authorRoland Haeder <roland@mxchange.org>
Thu, 13 Aug 2015 13:33:24 +0000 (15:33 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 13 Aug 2015 13:33:24 +0000 (15:33 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java

index 2ad4ae2d7e663d9dc103402ce49ac1ded43fa870..4c7cb13fca8075000f963b73e6a7ec1ab233e79e 100644 (file)
@@ -26,6 +26,7 @@ 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.BadTokenException;
 import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException;
 import org.mxchange.jcore.exceptions.UnhandledUserChoiceException;
 import org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException;
@@ -186,14 +187,14 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
 
                        // Init frame
                        this.frame.init();
-               } catch (final FrameAlreadyInitializedException | UnsupportedDatabaseBackendException | SQLException ex) {
+
+                       // Now start the frame
+                       this.frame.setupFrame(this);
+               } catch (final FrameAlreadyInitializedException | UnsupportedDatabaseBackendException | IOException | BadTokenException | SQLException ex) {
                        // Abort program
                        this.abortProgramWithException(ex);
                }
 
-               // Now start the frame
-               this.frame.setupFrame(this);
-
                // Debug message
                this.getLogger().trace("EXIT!"); //NOI18N
        }