diff options
Diffstat (limited to 'pdf-as-lib/src/main/java')
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java | 20 |
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); } |