aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2013-01-28 17:29:47 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2013-01-28 17:29:47 +0000
commite0d280a78d86f32866d80a2a7e97db4d5a6292fd (patch)
tree366b81a98b10a581a41019996e0f654edd06b73c /pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper
parent5c5010f818b32b43f2c0c799ef062ef12bff66ca (diff)
downloadpdf-as-3-e0d280a78d86f32866d80a2a7e97db4d5a6292fd.tar.gz
pdf-as-3-e0d280a78d86f32866d80a2a7e97db4d5a6292fd.tar.bz2
pdf-as-3-e0d280a78d86f32866d80a2a7e97db4d5a6292fd.zip
Minor issues (e.g. source code encoding issues) fixed.
Cleanup tasks... git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/pdf-as/trunk@929 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SignServletHelper.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SignServletHelper.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SignServletHelper.java
index 3b8937a..cddd073 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SignServletHelper.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/SignServletHelper.java
@@ -48,6 +48,7 @@ import at.gv.egiz.pdfas.api.io.DataSink;
import at.gv.egiz.pdfas.api.sign.SignParameters;
import at.gv.egiz.pdfas.api.sign.SignResult;
import at.gv.egiz.pdfas.api.sign.SignatureDetailInformation;
+import at.gv.egiz.pdfas.exceptions.ErrorCode;
import at.gv.egiz.pdfas.web.FormFields;
import at.gv.egiz.pdfas.web.PDFContainer;
import at.gv.egiz.pdfas.web.io.ByteArrayDataSink;
@@ -162,7 +163,7 @@ public class SignServletHelper
// check if document is empty
if (si.sdi.getSignatureData() == null || si.sdi.getSignatureData().getLength() == 0) {
- throw new PDFDocumentException(251, "Unable to extract and textual content.");
+ throw new PDFDocumentException(ErrorCode.NO_TEXTUAL_CONTENT, "Unable to extract and textual content.");
}
log.debug("connector = " + si.connector); //$NON-NLS-1$