From: Roland Haeder Date: Thu, 13 Aug 2015 13:33:24 +0000 (+0200) Subject: Added catching of some newly thrown exceptions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a4e9ecc951c5317d42a9287981c565580c895c5;p=jaddressbook-lib.git Added catching of some newly thrown exceptions Signed-off-by:Roland Häder --- diff --git a/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java b/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java index 2ad4ae2d..4c7cb13f 100644 --- a/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java +++ b/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java @@ -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 }