]> git.mxchange.org Git - addressbook-swing.git/blobdiff - Addressbook/src/org/mxchange/addressbook/manager/contact/ManageableAddressbookContact.java
More rewrites for thrown exceptions
[addressbook-swing.git] / Addressbook / src / org / mxchange / addressbook / manager / contact / ManageableAddressbookContact.java
index 651173090fd804d33dd5d49c3c574f156af8f0c2..77d39d35fca1cf335f2a07e7d1d53073eeb2f917 100644 (file)
  */
 package org.mxchange.addressbook.manager.contact;
 
+import java.io.IOException;
 import org.mxchange.addressbook.exceptions.ContactAlreadyAddedException;
 import org.mxchange.jcore.contact.Contact;
 import org.mxchange.jcore.contact.Gender;
+import org.mxchange.jcore.exceptions.BadTokenException;
 import org.mxchange.jcore.manager.database.ManageableDatabase;
 
 /**
@@ -173,8 +175,10 @@ public interface ManageableAddressbookContact extends ManageableDatabase {
 
        /**
         * Let the user change own data
+        * @throws java.io.IOException If an IO error was found
+        * @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found
         */
-       public void doChangeOwnData ();
+       public void doChangeOwnData () throws IOException , BadTokenException;
 
        /**
         * Let the user delete other address
@@ -184,8 +188,10 @@ public interface ManageableAddressbookContact extends ManageableDatabase {
        /**
         * Asks user for own data
         * @throws org.mxchange.addressbook.exceptions.ContactAlreadyAddedException If own contact is already added
+        * @throws java.io.IOException If an IO error was found
+        * @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found
         */
-       public void doEnterOwnData () throws ContactAlreadyAddedException;
+       public void doEnterOwnData () throws ContactAlreadyAddedException, IOException , BadTokenException;
 
        /**
         * Searches address book for a contact
@@ -197,6 +203,8 @@ public interface ManageableAddressbookContact extends ManageableDatabase {
         * isOwnContact flag
         *
         * @return Whether own contact is already added
+        * @throws java.io.IOException If an IO error occurs
+        * @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found
         */
-       public boolean isOwnContactAdded ();
+       public boolean isOwnContactAdded () throws IOException, BadTokenException;
 }