summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:09:14 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:09:14 +0000
commit0a7bee2fb6d6a130d984786d8e6aa1eb168ab134 (patch)
treeec2f7e524869421b2bbabf406cc2bb033e856a62 /pdf-over-gui/src/main/java/at/asit
parent6b2b646a698238fd52132090960f222d02a2923a (diff)
downloadmocca-0a7bee2fb6d6a130d984786d8e6aa1eb168ab134.tar.gz
mocca-0a7bee2fb6d6a130d984786d8e6aa1eb168ab134.tar.bz2
mocca-0a7bee2fb6d6a130d984786d8e6aa1eb168ab134.zip
Externalize path exceptions
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@161 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java
index 8e70f502..72e047c4 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java
@@ -455,16 +455,14 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite {
String foldername = this.configurationContainer.getOutputFolder();
- if (foldername != null && !foldername.equals("")) {
+ if (foldername != null && !foldername.equals("")) { //$NON-NLS-1$
File outputFolder = new File(foldername);
if (!outputFolder.exists()) {
- throw new Exception("Path " + outputFolder.getAbsolutePath()
- + " doesnot exists!");
+ throw new Exception(String.format(Messages.getString("exception.PathNotExist"), outputFolder.getAbsolutePath())); //$NON-NLS-1$
}
if (!outputFolder.isDirectory()) {
- throw new Exception("Path " + outputFolder.getAbsolutePath()
- + " is not a directory!");
+ throw new Exception(String.format(Messages.getString("exception.PathNotDirectory"), outputFolder.getAbsolutePath())); //$NON-NLS-1$
}
}
}