]> 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 555d9ed7171f87d83a0ad65170c12d60aade1c47..b43b42b54a49c3f2de6f9b5953f639957c76e461 100644 (file)
@@ -173,8 +173,23 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         * @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);
+
+       }
 }