aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-11-04 09:16:25 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-11-04 09:16:25 +0100
commit865748fad0446ba7a5012fc45a778bb5e79532bd (patch)
tree85feb16f8c4540c3815f46e35a269e0c0dc1c781 /pdf-as-lib/src/main/java/at
parent0e5320a6e524dd46179d5f7f1e86794b7b41092f (diff)
downloadpdf-as-4-865748fad0446ba7a5012fc45a778bb5e79532bd.tar.gz
pdf-as-4-865748fad0446ba7a5012fc45a778bb5e79532bd.tar.bz2
pdf-as-4-865748fad0446ba7a5012fc45a778bb5e79532bd.zip
Catch old SL Error Responses in all Catch handlers
Diffstat (limited to 'pdf-as-lib/src/main/java/at')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java
index 84bd7d29..f5d4ed82 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java
@@ -223,8 +223,20 @@ public class BKUSLConnector extends BaseSLConnector {
throw new PDFIOException("error.pdf.io.03", e);
} catch (ClientProtocolException e) {
+
+ SLPdfAsException slError = generateLegacySLException(slResponse);
+ if(slError != null) {
+ throw slError;
+ }
+
throw new PDFIOException("error.pdf.io.03", e);
} catch (IOException e) {
+
+ SLPdfAsException slError = generateLegacySLException(slResponse);
+ if(slError != null) {
+ throw slError;
+ }
+
throw new PDFIOException("error.pdf.io.03", e);
}
@@ -267,8 +279,16 @@ public class BKUSLConnector extends BaseSLConnector {
}
throw new PDFIOException("error.pdf.io.03", e);
} catch (ClientProtocolException e) {
+ SLPdfAsException slError = generateLegacySLException(slResponse);
+ if(slError != null) {
+ throw slError;
+ }
throw new PDFIOException("error.pdf.io.03", e);
} catch (IOException e) {
+ SLPdfAsException slError = generateLegacySLException(slResponse);
+ if(slError != null) {
+ throw slError;
+ }
throw new PDFIOException("error.pdf.io.03", e);
}