summaryrefslogtreecommitdiff
path: root/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/InvalidPropertyTypeException.java
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/InvalidPropertyTypeException.java')
-rw-r--r--pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/InvalidPropertyTypeException.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/InvalidPropertyTypeException.java b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/InvalidPropertyTypeException.java
new file mode 100644
index 00000000..8f9d54a9
--- /dev/null
+++ b/pdf-over/pdf-signer-interface/src/main/java/at/asit/pdfover/pdfsignator/InvalidPropertyTypeException.java
@@ -0,0 +1,16 @@
+package at.asit.pdfover.pdfsignator;
+
+import at.asit.pdfover.pdfsignator.profileproperties.ProfileProperty;
+import at.asit.pdfover.pdfsignator.profileproperties.validators.PropertyValidator;
+
+public class InvalidPropertyTypeException extends Exception {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 6174277563400848906L;
+
+ public InvalidPropertyTypeException(ProfileProperty property, PropertyValidator validator) {
+ super(String.format("Cannot add validator: %s to Property: %s (incompatible)",
+ validator.getClass().getName(), property.getClass().getName()));
+ }
+}