diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2013-10-16 10:30:10 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2013-10-16 10:30:10 +0200 |
commit | 07cfc175c86eec0def3cd7376e0697317d3d7b26 (patch) | |
tree | c1336c67023b508a8a662ed1d9f42707295d0591 /pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/api/exceptions | |
parent | 62434d4f7d4bf80b4c236c4153bffab703916ee3 (diff) | |
download | pdf-as-4-07cfc175c86eec0def3cd7376e0697317d3d7b26.tar.gz pdf-as-4-07cfc175c86eec0def3cd7376e0697317d3d7b26.tar.bz2 pdf-as-4-07cfc175c86eec0def3cd7376e0697317d3d7b26.zip |
Legacy API changes
Diffstat (limited to 'pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/api/exceptions')
-rw-r--r-- | pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/api/exceptions/ErrorCode.java | 2 | ||||
-rw-r--r-- | pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/api/exceptions/PdfAsWrappedException.java | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/api/exceptions/ErrorCode.java b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/api/exceptions/ErrorCode.java index 91dd8d8a..790ce9e0 100644 --- a/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/api/exceptions/ErrorCode.java +++ b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/api/exceptions/ErrorCode.java @@ -110,6 +110,6 @@ public final class ErrorCode public static final int CORRECTOR_EXCEPTION = 801;
public static final int EXTERNAL_CORRECTOR_TIMEOUT_REACHED = 802;
-
+ public static final int WRAPPED_ERROR_CODE = 998;
public static final int FUNCTION_NOT_AVAILABLE = 999;
}
diff --git a/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/api/exceptions/PdfAsWrappedException.java b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/api/exceptions/PdfAsWrappedException.java new file mode 100644 index 00000000..2ddd1146 --- /dev/null +++ b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/api/exceptions/PdfAsWrappedException.java @@ -0,0 +1,14 @@ +package at.gv.egiz.pdfas.api.exceptions; + +public class PdfAsWrappedException extends PdfAsException { + + /** + * + */ + private static final long serialVersionUID = -3947240372353864753L; + + public PdfAsWrappedException(Throwable e) { + super(ErrorCode.WRAPPED_ERROR_CODE, e.getMessage(), e); + } + +} |