]> git.mxchange.org Git - jfinancials-lib.git/blobdiff - Addressbook/src/org/mxchange/addressbook/application/AddressbookApplication.java
Made getMenu() abstract as showMenu() is now in BaseClient. This has the benefit...
[jfinancials-lib.git] / Addressbook / src / org / mxchange / addressbook / application / AddressbookApplication.java
index 44fe4684cc5cffc000efaf930e1293f04d42054d..00baae06f58dbe960b474bee216e58eefd12e4d3 100644 (file)
@@ -17,6 +17,7 @@
 package org.mxchange.addressbook.application;\r
 \r
 import org.mxchange.addressbook.BaseFrameworkSystem;\r
+import org.mxchange.addressbook.UnhandledUserChoiceException;\r
 import org.mxchange.addressbook.client.Client;\r
 import org.mxchange.addressbook.client.console.ConsoleClient;\r
 import org.mxchange.addressbook.manager.application.ApplicationManager;\r
@@ -164,14 +165,14 @@ public class AddressbookApplication extends BaseFrameworkSystem implements Appli
        this.getClient().setCurrentMenu("main");\r
 \r
        // --- Main loop starts here ---\r
-       while (this.getClient().isApplicationRunning()) {\r
+       while (this.getClient().isRunning()) {\r
            // The application is still active, show menu selection\r
            this.getClient().showCurrentMenu();\r
 \r
            try {\r
                // Ask for user input and run proper method\r
                this.getClient().doUserMenuChoice();\r
-           } catch (final Exception ex) {\r
+           } catch (final UnhandledUserChoiceException ex) {\r
                this.getLogger().catching(ex);\r
            }\r
        }\r