]> git.mxchange.org Git - jfinancials-lib.git/blobdiff - Addressbook/src/org/mxchange/addressbook/client/Client.java
Introduced own exception + added first sub menu for changing address data
[jfinancials-lib.git] / Addressbook / src / org / mxchange / addressbook / client / Client.java
index 545389447fecdd1284b8c8a6809d289bdc98ca90..2c4336c5b9f8509732f3c90188cd1c4fbfde931f 100644 (file)
@@ -16,6 +16,7 @@
  */\r
 package org.mxchange.addressbook.client;\r
 \r
+import org.mxchange.addressbook.UnhandledUserChoiceException;\r
 import org.mxchange.addressbook.FrameworkInterface;\r
 import org.mxchange.addressbook.contact.Contact;\r
 import org.mxchange.addressbook.menu.item.SelectableMenuItem;\r
@@ -54,11 +55,19 @@ public interface Client extends FrameworkInterface {
      */\r
     public void displayOtherDataBox (final Contact contact);\r
 \r
+    /**\r
+     * Let the user choose what to change on the address: [n]ame, [a]ddress,\r
+     * [o]ther\r
+     * @param contact Contact instance to let the user change data\r
+     * @throws UnhandledUserChoiceException If choice is not supported\r
+     */\r
+    public void doUserChangeAdressChoice (final Contact contact) throws UnhandledUserChoiceException;\r
+\r
     /**\r
      * Asks the user for a choice and proceeds accordingly\r
-     * @throws java.lang.Exception\r
+     * @throws UnhandledUserChoiceException If choice is not supported\r
      */\r
-    public void doUserChoice () throws Exception ;\r
+    public void doUserMenuChoice () throws UnhandledUserChoiceException ;\r
 \r
     /**\r
      * Enables isRunning attribute which singals that the client is running\r