aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-legacy/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-legacy/src/main/java/at/gv/egiz')
-rw-r--r--pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java
index ac76a56b..2412b8cd 100644
--- a/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java
+++ b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java
@@ -115,6 +115,11 @@ public class PdfAsObject implements PdfAs {
throw new PdfAsException(
ErrorCode.SIGNATURE_COULDNT_BE_CREATED, e.getMessage());
+ } catch (at.gv.egiz.pdfas.common.exceptions.PDFASError e) {
+ e.printStackTrace();
+ throw new PdfAsException(
+ ErrorCode.SIGNATURE_COULDNT_BE_CREATED, e.getMessage());
+
}
} else {
throw new PdfAsException(ErrorCode.SIGNATURE_COULDNT_BE_CREATED,
@@ -142,7 +147,7 @@ public class PdfAsObject implements PdfAs {
}
return new VerifyResultsImpl(resultList);
- } catch (at.gv.egiz.pdfas.common.exceptions.PdfAsException e) {
+ } catch (at.gv.egiz.pdfas.common.exceptions.PDFASError e) {
throw new PdfAsException(0, e.getMessage());
}
}
@@ -264,6 +269,11 @@ public class PdfAsObject implements PdfAs {
} catch (CertificateException e) {
throw new PdfAsException(ErrorCode.SIGNATURE_COULDNT_BE_CREATED,
e.getMessage());
+ } catch (at.gv.egiz.pdfas.common.exceptions.PDFASError e) {
+ e.printStackTrace();
+ throw new PdfAsException(
+ ErrorCode.SIGNATURE_COULDNT_BE_CREATED, e.getMessage());
+
}
}