From 2469fb7a9139bcc1f0bf643b6237e0c3aaaedf78 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 11 Aug 2015 14:25:04 +0200 Subject: [PATCH] =?utf8?q?replaced=20with=20multi-catch=20Signed-off-by:Ro?= =?utf8?q?land=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../contact/AddressbookContactDatabaseFrontend.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Addressbook/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java b/Addressbook/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java index 97593c6..6fb0816 100644 --- a/Addressbook/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java +++ b/Addressbook/src/org/mxchange/addressbook/database/frontend/contact/AddressbookContactDatabaseFrontend.java @@ -75,12 +75,9 @@ public class AddressbookContactDatabaseFrontend extends BaseDatabaseFrontend imp try { // Initalize backend this.initBackend(); - } catch (final UnsupportedDatabaseBackendException ex) { + } catch (final UnsupportedDatabaseBackendException | SQLException ex) { // Abort program this.abortProgramWithException(ex); - } catch (final SQLException ex) { - // Abort here - this.abortProgramWithException(ex); } } @@ -110,10 +107,7 @@ public class AddressbookContactDatabaseFrontend extends BaseDatabaseFrontend imp // Then add it this.getBackend().store((Storeable) contact); - } catch (final IOException ex) { - // Abort here - this.abortProgramWithException(ex); - } catch (final BadTokenException ex) { + } catch (final IOException | BadTokenException ex) { // Abort here this.abortProgramWithException(ex); } -- 2.39.5