From 9d00067f8f5910f246466bfbfabe0dfb713e7ff0 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Tue, 19 Dec 2023 14:34:22 +0100 Subject: fix(core): optimize error-handling in case of errors during the raw signing steps --- .../at/gv/egiz/pdfas/common/exceptions/PdfAsWrappedIOException.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pdf-as-common') diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsWrappedIOException.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsWrappedIOException.java index 4a67abac..575dbdce 100644 --- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsWrappedIOException.java +++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/exceptions/PdfAsWrappedIOException.java @@ -36,4 +36,8 @@ public class PdfAsWrappedIOException extends IOException { super(e); } + public PdfAsException getDecoratedException() { + return (PdfAsException) getCause(); + } + } -- cgit v1.2.3