Signed-off-by:Roland Häder <roland@mxchange.org>
try {
// Initalize backend
this.initBackend();
try {
// Initalize backend
this.initBackend();
- } catch (final UnsupportedDatabaseBackendException ex) {
+ } catch (final UnsupportedDatabaseBackendException | SQLException ex) {
// Abort program
this.abortProgramWithException(ex);
// Abort program
this.abortProgramWithException(ex);
- } catch (final SQLException ex) {
- // Abort here
- this.abortProgramWithException(ex);
// Then add it
this.getBackend().store((Storeable) contact);
// 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);
}
// Abort here
this.abortProgramWithException(ex);
}