diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-10-15 18:07:20 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-10-15 18:07:20 +0200 |
commit | 0b663afa4d0167df1e838e1f37bb5862e8951037 (patch) | |
tree | 1b962dedd3c2e1eba042c89fbf6191b42218bd36 /pdf-as-legacy/src | |
parent | d9dcd54eae2b3a8e46dce69c96eca7c97f1be429 (diff) | |
download | pdf-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')
-rw-r--r-- | pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java | 12 |
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()); + } } |