From: Roland Haeder Date: Tue, 11 Aug 2015 12:25:04 +0000 (+0200) Subject: replaced with multi-catch X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2469fb7a9139bcc1f0bf643b6237e0c3aaaedf78;p=jbonuscard-lib.git replaced with multi-catch Signed-off-by:Roland Häder --- 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); }