diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-03-19 13:16:01 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-03-19 13:16:01 +0100 |
commit | c3be24f091fb555ee67a7c6a1db3c5e70643585c (patch) | |
tree | a9b1ed779a9308f879cf1326d2f80d5b772ed5b4 /id/server/idserverlib/src/main/java/at/gv | |
parent | e82769f47f422e4042a9fbf9c9fcc2f571a48781 (diff) | |
download | moa-id-spss-c3be24f091fb555ee67a7c6a1db3c5e70643585c.tar.gz moa-id-spss-c3be24f091fb555ee67a7c6a1db3c5e70643585c.tar.bz2 moa-id-spss-c3be24f091fb555ee67a7c6a1db3c5e70643585c.zip |
add MISClient error messages
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/client/mis/simple/MISSimpleClient.java | 11 |
1 files changed, 10 insertions, 1 deletions
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 {
|