From 0a4e9ecc951c5317d42a9287981c565580c895c5 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 13 Aug 2015 15:33:24 +0200 Subject: [PATCH] =?utf8?q?Added=20catching=20of=20some=20newly=20thrown=20?= =?utf8?q?exceptions=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../org/mxchange/addressbook/client/gui/SwingClient.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java b/Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java index 2ad4ae2..4c7cb13 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 } -- 2.39.5