summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:10:19 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:10:19 +0000
commit940249260fd6a8de36a5739afd818eaab2e05bd1 (patch)
tree851e7d3847c28c18a879917fad242365e5904db6 /pdf-over-gui/src
parent0e63e608c06f3ec9b81b067ee5529219b5b3ca1e (diff)
downloadmocca-940249260fd6a8de36a5739afd818eaab2e05bd1.tar.gz
mocca-940249260fd6a8de36a5739afd818eaab2e05bd1.tar.bz2
mocca-940249260fd6a8de36a5739afd818eaab2e05bd1.zip
Add a common base class for all Exceptions
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@171 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InitializationException.java2
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidEmblemFile.java2
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidNumberException.java2
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidPasswordException.java2
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidPortException.java2
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/OutputfolderNotADirectoryException.java5
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PDFOverGUIException.java58
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/ResumableException.java2
8 files changed, 65 insertions, 10 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InitializationException.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InitializationException.java
index d54b5d0b..ed96d06e 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InitializationException.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InitializationException.java
@@ -18,7 +18,7 @@ package at.asit.pdfover.gui.exceptions;
/**
*
*/
-public class InitializationException extends Exception {
+public class InitializationException extends PDFOverGUIException {
/**
*
*/
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidEmblemFile.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidEmblemFile.java
index bcf853c0..0657da7c 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidEmblemFile.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidEmblemFile.java
@@ -23,7 +23,7 @@ import at.asit.pdfover.gui.Messages;
/**
*
*/
-public class InvalidEmblemFile extends Exception {
+public class InvalidEmblemFile extends PDFOverGUIException {
/**
*
*/
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidNumberException.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidNumberException.java
index 467ff327..c373a423 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidNumberException.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidNumberException.java
@@ -20,7 +20,7 @@ package at.asit.pdfover.gui.exceptions;
/**
*
*/
-public class InvalidNumberException extends Exception {
+public class InvalidNumberException extends PDFOverGUIException {
/**
*
*/
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidPasswordException.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidPasswordException.java
index 06bf279f..e6984a7d 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidPasswordException.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidPasswordException.java
@@ -18,7 +18,7 @@ package at.asit.pdfover.gui.exceptions;
/**
* Base Class for Invalid password exceptions
*/
-public abstract class InvalidPasswordException extends Exception {
+public abstract class InvalidPasswordException extends PDFOverGUIException {
/**
*
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidPortException.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidPortException.java
index 96240f86..3a37d3a0 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidPortException.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidPortException.java
@@ -20,7 +20,7 @@ import at.asit.pdfover.gui.Messages;
/**
*
*/
-public class InvalidPortException extends Exception {
+public class InvalidPortException extends PDFOverGUIException {
/**
*
*/
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/OutputfolderNotADirectoryException.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/OutputfolderNotADirectoryException.java
index 50759790..627b3133 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/OutputfolderNotADirectoryException.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/OutputfolderNotADirectoryException.java
@@ -24,10 +24,7 @@ import at.asit.pdfover.gui.Messages;
/**
*
*/
-/**
- *
- */
-public class OutputfolderNotADirectoryException extends Exception {
+public class OutputfolderNotADirectoryException extends PDFOverGUIException {
/**
*
*/
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PDFOverGUIException.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PDFOverGUIException.java
new file mode 100644
index 00000000..bdfbe41d
--- /dev/null
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PDFOverGUIException.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2012 by A-SIT, Secure Information Technology Center Austria
+ *
+ * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by
+ * the European Commission - subsequent versions of the EUPL (the "Licence");
+ * You may not use this work except in compliance with the Licence.
+ * You may obtain a copy of the Licence at:
+ * http://joinup.ec.europa.eu/software/page/eupl
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the Licence is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the Licence for the specific language governing permissions and
+ * limitations under the Licence.
+ */
+package at.asit.pdfover.gui.exceptions;
+
+/**
+ * Base class for GUI Exceptions
+ */
+public class PDFOverGUIException extends Exception {
+ /**
+ * Serial Version UID
+ */
+ private static final long serialVersionUID = -3942861617701033882L;
+
+ /**
+ * Constructor
+ */
+ public PDFOverGUIException() {
+ }
+
+ /**
+ * Constructor
+ * @param msg Exception message
+ */
+ public PDFOverGUIException(String msg) {
+ super(msg);
+ }
+
+ /**
+ * Constructor
+ * @param cause Exception causing this one
+ */
+ public PDFOverGUIException(Throwable cause) {
+ super(cause);
+ }
+
+ /**
+ * Constructor
+ * @param msg Exception message
+ * @param cause Exception causing this one
+ */
+ public PDFOverGUIException(String msg, Throwable cause) {
+ super(msg, cause);
+ }
+
+}
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/ResumableException.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/ResumableException.java
index 4d150b44..3b0c79c1 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/ResumableException.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/ResumableException.java
@@ -18,7 +18,7 @@ package at.asit.pdfover.gui.exceptions;
/**
*
*/
-public class ResumableException extends Exception {
+public class ResumableException extends PDFOverGUIException {
/**
*