From 865748fad0446ba7a5012fc45a778bb5e79532bd Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 4 Nov 2014 09:16:25 +0100 Subject: Catch old SL Error Responses in all Catch handlers --- .../main/java/at/gv/egiz/sl/util/BKUSLConnector.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/sl') 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); } -- cgit v1.2.3