summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 18:58:27 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 18:58:27 +0000
commit96a1a5c9d04238c63247794ad9c76e5a2001b8d0 (patch)
treec0b05f0378e84e53a73cdfb62612a7d3e6ecb40a /pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions
parentb8b015d3fa3b58cb5e70b4cd2ad1b8fe2a424af9 (diff)
downloadpdf-over-96a1a5c9d04238c63247794ad9c76e5a2001b8d0.tar.gz
pdf-over-96a1a5c9d04238c63247794ad9c76e5a2001b8d0.tar.bz2
pdf-over-96a1a5c9d04238c63247794ad9c76e5a2001b8d0.zip
Moved Mobile BKU URL to configuration file
Extracted localizable Strings git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@61 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidEmblemFile.java13
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/InvalidPortException.java4
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PasswordTooLongException.java4
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PasswordTooShortException.java4
4 files changed, 13 insertions, 12 deletions
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 9ba8f66a..bcf853c0 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
@@ -18,8 +18,7 @@ package at.asit.pdfover.gui.exceptions;
// Imports
import java.io.File;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import at.asit.pdfover.gui.Messages;
/**
*
@@ -29,25 +28,21 @@ public class InvalidEmblemFile extends Exception {
*
*/
private static final long serialVersionUID = -5826910929131650685L;
- /**
- * SLF4J Logger instance
- **/
- private static final Logger log = LoggerFactory
- .getLogger(InvalidEmblemFile.class);
/**
* Constructor
* @param file
*/
public InvalidEmblemFile(final File file) {
- super("File: " + file.getAbsolutePath() + " is an invalid emblem file!");
+ super(file.getAbsolutePath() + Messages.getString("exception.InvalidEmblemFile")); //$NON-NLS-1$
}
/**
* Constructor
* @param file
+ * @param reason
*/
public InvalidEmblemFile(final File file, Throwable reason) {
- super("File: " + file.getAbsolutePath() + " is an invalid emblem file!", reason);
+ super(file.getAbsolutePath() + Messages.getString("exception.InvalidEmblemFile"), reason); //$NON-NLS-1$
}
}
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 923a04a5..96240f86 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
@@ -15,6 +15,8 @@
*/
package at.asit.pdfover.gui.exceptions;
+import at.asit.pdfover.gui.Messages;
+
/**
*
*/
@@ -30,6 +32,6 @@ public class InvalidPortException extends Exception {
* @param port
*/
public InvalidPortException(int port) {
- super("Port " + port + " is invalid has to be between 1 and " + 0xffff);
+ super(port + Messages.getString("exception.InvalidPort") + 0xffff); //$NON-NLS-1$
}
}
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PasswordTooLongException.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PasswordTooLongException.java
index ac578664..6d870564 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PasswordTooLongException.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PasswordTooLongException.java
@@ -15,6 +15,8 @@
*/
package at.asit.pdfover.gui.exceptions;
+import at.asit.pdfover.gui.Messages;
+
// Imports
/**
@@ -26,7 +28,7 @@ public class PasswordTooLongException extends InvalidPasswordException {
* Constructor
*/
public PasswordTooLongException() {
- super("Given password is too long!");
+ super(Messages.getString("exception.PasswordTooLong")); //$NON-NLS-1$
}
/**
*
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PasswordTooShortException.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PasswordTooShortException.java
index 0e6a98f7..1376dfbb 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PasswordTooShortException.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/exceptions/PasswordTooShortException.java
@@ -15,6 +15,8 @@
*/
package at.asit.pdfover.gui.exceptions;
+import at.asit.pdfover.gui.Messages;
+
// Imports
/**
@@ -30,7 +32,7 @@ public class PasswordTooShortException extends InvalidPasswordException {
* Constructor
*/
public PasswordTooShortException() {
- super("Given password is too short!");
+ super(Messages.getString("exception.PasswordTooShort")); //$NON-NLS-1$
}
}