- @Override
- public final int size () throws IOException {
- // Init size
- int size = -1;
-
- try {
- size = ((AddressbookContactFrontend) this.getFrontend()).getContactsCount();
- } catch (final SQLException ex) {
- // Something happened
- this.abortProgramWithException(ex);
- }
+ /**
+ * Logs given exception and exits program
+ *
+ * @param throwable Throwable
+ */
+ private void abortProgramWithException (Throwable throwable) {
+ // Log exception
+ this.logException(throwable);