this.application = application;
}
+ /**
+ * Getter for bundle instance
+ *
+ * @return Resource bundle
+ */
+ protected final ResourceBundle getBundle () {
+ return this.bundle;
+ }
+
/**
* Getter for logger
*
}
/**
- * Getter for bundle instance
+ * Getter for human-readable string from given key
*
- * @return Resource bundle
+ * @param key Key to return
+ * @return Human-readable message
*/
- protected final ResourceBundle getBundle () {
- return this.bundle;
+ @Override
+ public final String getMessageStringFromKey (final String key) {
+ // Return message
+ return this.getBundle().getString(key);
+ }
+
+ /**
+ * Aborts program with given exception
+ *
+ * @param throwable Any type of Throwable
+ */
+ protected final void abortProgramWithException (final Throwable throwable) {
+ // Log exception ...
+ this.getLogger().catching(throwable);
+
+ // .. and exit
+ System.exit(1);
+
}
}