aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-12-17 11:38:33 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-12-17 11:38:33 +0100
commitcec0065b747d30c6a0a17d18f2c7c8962a9102ed (patch)
treee80a3b2b791126dd47a8698c01904148d9fe2202 /pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions
parentd16ded1cadbe7bd6fcfbcd3d1a323a567b4ccff9 (diff)
downloadpdf-as-4-cec0065b747d30c6a0a17d18f2c7c8962a9102ed.tar.gz
pdf-as-4-cec0065b747d30c6a0a17d18f2c7c8962a9102ed.tar.bz2
pdf-as-4-cec0065b747d30c6a0a17d18f2c7c8962a9102ed.zip
Pdf AS validation
Diffstat (limited to 'pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions')
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsValidationException.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsValidationException.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsValidationException.java
new file mode 100644
index 00000000..61bfffda
--- /dev/null
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsValidationException.java
@@ -0,0 +1,23 @@
+package at.gv.egiz.pdfas.common.exceptions;
+
+import at.gv.egiz.pdfas.common.messages.MessageResolver;
+
+public class PdfAsValidationException extends PdfAsException {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -2428540014894153122L;
+
+ private String parameter;
+
+ public PdfAsValidationException(String msgId, String parameter) {
+ super(msgId);
+ this.parameter = parameter;
+ }
+
+ @Override
+ protected String localizeMessage(String msgId) {
+ return String.format(MessageResolver.resolveMessage(msgId), parameter);
+ }
+}