aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-15 18:07:20 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-15 18:07:20 +0200
commit0b663afa4d0167df1e838e1f37bb5862e8951037 (patch)
tree1b962dedd3c2e1eba042c89fbf6191b42218bd36 /pdf-as-legacy/src/main/java/at/gv/egiz/pdfas
parentd9dcd54eae2b3a8e46dce69c96eca7c97f1be429 (diff)
downloadpdf-as-4-0b663afa4d0167df1e838e1f37bb5862e8951037.tar.gz
pdf-as-4-0b663afa4d0167df1e838e1f37bb5862e8951037.tar.bz2
pdf-as-4-0b663afa4d0167df1e838e1f37bb5862e8951037.zip
PDF-AS Errorhandling redesign only PDFASError Exceptions are returned
!
Diffstat (limited to 'pdf-as-legacy/src/main/java/at/gv/egiz/pdfas')
-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());
+
}
}