]> git.mxchange.org Git - jbonuscard-lib.git/blobdiff - Addressbook/src/org/mxchange/addressbook/BaseFrameworkSystem.java
A lot more improvements:
[jbonuscard-lib.git] / Addressbook / src / org / mxchange / addressbook / BaseFrameworkSystem.java
index 9580cd137b1405b673b294fc32b58d68afdfc67e..b43b42b54a49c3f2de6f9b5953f639957c76e461 100644 (file)
@@ -166,4 +166,30 @@ public class BaseFrameworkSystem implements FrameworkInterface {
        protected final void setTableName (final String tableName) {
                this.tableName = tableName;
        }
+
+       /**
+        * Getter for human-readable string from given key
+        *
+        * @param key Key to return
+        * @return Human-readable message
+        */
+       @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);
+
+       }
 }