]> git.mxchange.org Git - jaddressbook-lib.git/commitdiff
Added more thrown exception (yes, again)
authorRoland Haeder <roland@mxchange.org>
Fri, 14 Aug 2015 19:50:20 +0000 (21:50 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 14 Aug 2015 19:50:20 +0000 (21:50 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

Addressbook/nbproject/project.properties
Addressbook/src/org/mxchange/addressbook/manager/contact/AddressbookContactManager.java

index 2864028dc6648fa2036f7b0ac42351559a5503db..7cc6fa2902c6cf841d8c98a3af94d2a49d948d9c 100644 (file)
@@ -1,83 +1,87 @@
-annotation.processing.enabled=true\r
-annotation.processing.enabled.in.editor=false\r
-annotation.processing.processors.list=\r
-annotation.processing.run.all.processors=true\r
-annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output\r
-application.title=Addressbook\r
-application.vendor=Roland Haeder\r
-build.classes.dir=${build.dir}/classes\r
-build.classes.excludes=**/*.java,**/*.form\r
-# This directory is removed when the project is cleaned:\r
-build.dir=build\r
-build.generated.dir=${build.dir}/generated\r
-build.generated.sources.dir=${build.dir}/generated-sources\r
-# Only compile against the classpath explicitly listed here:\r
-build.sysclasspath=ignore\r
-build.test.classes.dir=${build.dir}/test/classes\r
-build.test.results.dir=${build.dir}/test/results\r
-# Uncomment to specify the preferred debugger connection transport:\r
-#debug.transport=dt_socket\r
-debug.classpath=\\r
-    ${run.classpath}\r
-debug.test.classpath=\\r
-    ${run.test.classpath}\r
-# Files in build.classes.dir which should be excluded from distribution jar\r
-dist.archive.excludes=\r
-# This directory is removed when the project is cleaned:\r
-dist.dir=dist\r
-dist.jar=${dist.dir}/Addressbook.jar\r
-dist.javadoc.dir=${dist.dir}/javadoc\r
-endorsed.classpath=\r
-excludes=\r
-file.reference.log4j-api-2.3.jar=C:\\Users\\KLC\\Documents\\NetBeansProjects\\jcore\\lib\\log4j-api-2.3.jar\r
-file.reference.log4j-core-2.3.jar=C:\\Users\\KLC\\Documents\\NetBeansProjects\\jcore\\lib\\log4j-core-2.3.jar\r
-includes=**\r
-jar.compress=false\r
-javac.classpath=\\r
-    ${file.reference.log4j-api-2.3.jar}:\\r
-    ${file.reference.log4j-core-2.3.jar}:\\r
-    ${reference.jcore.jar}\r
-# Space-separated list of extra javac options\r
-javac.compilerargs=-Xlint:deprecation -Xlint:unchecked\r
-javac.deprecation=false\r
-javac.processorpath=\\r
-    ${javac.classpath}\r
-javac.source=1.7\r
-javac.target=1.7\r
-javac.test.classpath=\\r
-    ${javac.classpath}:\\r
-    ${build.classes.dir}\r
-javac.test.processorpath=\\r
-    ${javac.test.classpath}\r
-javadoc.additionalparam=\r
-javadoc.author=false\r
-javadoc.encoding=${source.encoding}\r
-javadoc.noindex=false\r
-javadoc.nonavbar=false\r
-javadoc.notree=false\r
-javadoc.private=false\r
-javadoc.splitindex=true\r
-javadoc.use=true\r
-javadoc.version=false\r
-javadoc.windowtitle=\r
-main.class=org.mxchange.addressbook.application.AddressbookApplication\r
-manifest.file=manifest.mf\r
-meta.inf.dir=${src.dir}/META-INF\r
-mkdist.disabled=false\r
-platform.active=default_platform\r
-project.jcore=../../jcore\r
-project.license=gpl30\r
-reference.jcore.jar=${project.jcore}/dist/jcore.jar\r
-run.classpath=\\r
-    ${javac.classpath}:\\r
-    ${build.classes.dir}\r
-# Space-separated list of JVM arguments used when running the project.\r
-# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.\r
-# To set system properties for unit tests define test-sys-prop.name=value:\r
-run.jvmargs=-ea\r
-run.test.classpath=\\r
-    ${javac.test.classpath}:\\r
-    ${build.test.classes.dir}\r
-source.encoding=UTF-8\r
-src.dir=src\r
-test.src.dir=test\r
+annotation.processing.enabled=true
+annotation.processing.enabled.in.editor=false
+annotation.processing.processors.list=
+annotation.processing.run.all.processors=true
+annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
+application.title=Addressbook
+application.vendor=Roland Haeder
+build.classes.dir=${build.dir}/classes
+build.classes.excludes=**/*.java,**/*.form
+# This directory is removed when the project is cleaned:
+build.dir=build
+build.generated.dir=${build.dir}/generated
+build.generated.sources.dir=${build.dir}/generated-sources
+# Only compile against the classpath explicitly listed here:
+build.sysclasspath=ignore
+build.test.classes.dir=${build.dir}/test/classes
+build.test.results.dir=${build.dir}/test/results
+# Uncomment to specify the preferred debugger connection transport:
+#debug.transport=dt_socket
+debug.classpath=\
+    ${run.classpath}
+debug.test.classpath=\
+    ${run.test.classpath}
+# Files in build.classes.dir which should be excluded from distribution jar
+dist.archive.excludes=
+# This directory is removed when the project is cleaned:
+dist.dir=dist
+dist.jar=${dist.dir}/Addressbook.jar
+dist.javadoc.dir=${dist.dir}/javadoc
+endorsed.classpath=
+excludes=
+file.reference.log4j-api-2.3.jar=C:\\Users\\KLC\\Documents\\NetBeansProjects\\jcore\\lib\\log4j-api-2.3.jar
+file.reference.log4j-core-2.3.jar=C:\\Users\\KLC\\Documents\\NetBeansProjects\\jcore\\lib\\log4j-core-2.3.jar
+includes=**
+jar.compress=false
+javac.classpath=\
+    ${file.reference.log4j-api-2.3.jar}:\
+    ${file.reference.log4j-core-2.3.jar}:\
+    ${reference.jcore.jar}
+# Space-separated list of extra javac options
+javac.compilerargs=-Xlint:deprecation -Xlint:unchecked
+javac.deprecation=false
+javac.processorpath=\
+    ${javac.classpath}
+javac.source=1.7
+javac.target=1.7
+javac.test.classpath=\
+    ${javac.classpath}:\
+    ${build.classes.dir}
+javac.test.processorpath=\
+    ${javac.test.classpath}
+javadoc.additionalparam=
+javadoc.author=false
+javadoc.encoding=${source.encoding}
+javadoc.noindex=false
+javadoc.nonavbar=false
+javadoc.notree=false
+javadoc.private=false
+javadoc.reference.log4j-api-2.3.jar=/home/quix0r/MyProjects/JARs/log4j-api-2.3-javadoc.jar
+javadoc.reference.log4j-core-2.3.jar=/home/quix0r/MyProjects/JARs/log4j-core-2.3-javadoc.jar
+javadoc.splitindex=true
+javadoc.use=true
+javadoc.version=false
+javadoc.windowtitle=
+main.class=org.mxchange.addressbook.application.AddressbookApplication
+manifest.file=manifest.mf
+meta.inf.dir=${src.dir}/META-INF
+mkdist.disabled=false
+platform.active=default_platform
+project.jcore=../../jcore
+project.license=gpl30
+reference.jcore.jar=${project.jcore}/dist/jcore.jar
+run.classpath=\
+    ${javac.classpath}:\
+    ${build.classes.dir}
+# Space-separated list of JVM arguments used when running the project.
+# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
+# To set system properties for unit tests define test-sys-prop.name=value:
+run.jvmargs=-ea
+run.test.classpath=\
+    ${javac.test.classpath}:\
+    ${build.test.classes.dir}
+source.encoding=UTF-8
+source.reference.log4j-api-2.3.jar=/home/quix0r/MyProjects/JARs/log4j-api-2.3-sources.jar
+source.reference.log4j-core-2.3.jar=/home/quix0r/MyProjects/JARs/log4j-core-2.3-sources.jar
+src.dir=src
+test.src.dir=test
index ab71513ff8b1495d13fae858b0681d496e199d02..ef41687e2e5b888910d324ae56a33ca77fcc6956 100644 (file)
@@ -32,6 +32,7 @@ import org.mxchange.jcore.client.Client;
 import org.mxchange.jcore.contact.Contact;
 import org.mxchange.jcore.contact.Gender;
 import org.mxchange.jcore.exceptions.BadTokenException;
+import org.mxchange.jcore.exceptions.CorruptedDatabaseFileException;
 import org.mxchange.jcore.exceptions.UnhandledUserChoiceException;
 import org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException;
 import org.mxchange.jcore.manager.BaseManager;
@@ -654,7 +655,7 @@ public class AddressbookContactManager extends BaseManager implements Manageable
                try {
                        // Deligate this call to frontend
                        isAdded = this.getContactDatabase().isOwnContactFound();
-               } catch (final SQLException | IOException | BadTokenException ex) {
+               } catch (final SQLException | IOException | BadTokenException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
                        // Something bad happened
                        this.abortProgramWithException(ex);
                }
@@ -697,7 +698,7 @@ public class AddressbookContactManager extends BaseManager implements Manageable
 
                        // Add contact to internal list
                        this.addContact(contact);
-               } catch (final ContactAlreadyAddedException | BadTokenException | IOException ex) {
+               } catch (final ContactAlreadyAddedException | BadTokenException | SQLException | IOException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
                        // Abort here
                        this.abortProgramWithException(ex);
                }