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);
}
}
// 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);
}