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
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