From c3be24f091fb555ee67a7c6a1db3c5e70643585c Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 19 Mar 2014 13:16:01 +0100 Subject: add MISClient error messages --- .../moa/id/util/client/mis/simple/MISSimpleClient.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'id/server') diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/client/mis/simple/MISSimpleClient.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/client/mis/simple/MISSimpleClient.java index 200c60578..b9c4e88b7 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/client/mis/simple/MISSimpleClient.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/client/mis/simple/MISSimpleClient.java @@ -306,15 +306,24 @@ public class MISSimpleClient { //Element elem = parse(post.getResponseBodyAsStream()); Document doc = DOMUtils.parseDocumentSimple(post.getResponseBodyAsStream()); return unpackFromSOAP(doc.getDocumentElement()); + } catch(IOException e) { - throw new MISSimpleClientException(e); + throw new MISSimpleClientException(e.getLocalizedMessage(), e); + } catch (TransformerException e) { throw new MISSimpleClientException(e); + } catch (SAXException e) { throw new MISSimpleClientException(e); + } catch (ParserConfigurationException e) { throw new MISSimpleClientException(e); + + } catch (Exception e) { + throw new MISSimpleClientException(e.getLocalizedMessage(), e); + } + } private static Element packIntoSOAP(Element element) throws MISSimpleClientException { -- cgit v1.2.3