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
*/\r
public static void main (String[] args) {\r
// Start application\r
- new AddressbookApplication().start ();\r
+ new AddressbookApplication().start();\r
}\r
\r
/**\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().doUserChoice();\r
- } catch (final Exception ex) {\r
+ this.getClient().doUserMenuChoice();\r
+ } catch (final UnhandledUserChoiceException ex) {\r
this.getLogger().catching(ex);\r
}\r
}\r
this.getLogger().info("Program is started.");\r
\r
// Launch application\r
- ApplicationManager.getManager(this).start ();\r
+ ApplicationManager.getManager(this).start();\r
\r
this.getLogger().info("End of program (last line)");\r
}\r