diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2021-11-17 08:22:46 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2021-11-17 08:22:46 +0100 |
commit | ac4812a1c4cccf61ba0843b04cb987df49f34e29 (patch) | |
tree | 13d97230a3db97ddbb5360c5ee3fe7445c9c2be9 /id/server | |
parent | 6b5dcf89313f270f3bda22af7d704be6e17548b5 (diff) | |
download | moa-id-spss-ac4812a1c4cccf61ba0843b04cb987df49f34e29.tar.gz moa-id-spss-ac4812a1c4cccf61ba0843b04cb987df49f34e29.tar.bz2 moa-id-spss-ac4812a1c4cccf61ba0843b04cb987df49f34e29.zip |
distinguish between 'ERROR_EHVD_02' and 'ERROR_EHVD_03' based on error message
Diffstat (limited to 'id/server')
-rw-r--r-- | id/server/modules/moa-id-module-ehvd_integration/src/main/java/at/gv/egovernment/moa/id/auth/modules/ehvd/service/EhvdCommunicationService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/id/server/modules/moa-id-module-ehvd_integration/src/main/java/at/gv/egovernment/moa/id/auth/modules/ehvd/service/EhvdCommunicationService.java b/id/server/modules/moa-id-module-ehvd_integration/src/main/java/at/gv/egovernment/moa/id/auth/modules/ehvd/service/EhvdCommunicationService.java index cf58fe718..b165d05e2 100644 --- a/id/server/modules/moa-id-module-ehvd_integration/src/main/java/at/gv/egovernment/moa/id/auth/modules/ehvd/service/EhvdCommunicationService.java +++ b/id/server/modules/moa-id-module-ehvd_integration/src/main/java/at/gv/egovernment/moa/id/auth/modules/ehvd/service/EhvdCommunicationService.java @@ -132,13 +132,15 @@ public class EhvdCommunicationService implements IEhvdCommunication { .findFirst() .isPresent()) { Logger.info("EHVD communication failed with SOAP response: " + errorMsg); + return new EhvdException(ERROR_EHVD_03, new Object[] { errorMsg }); } else { Logger.warn("EHVD communication failed with SOAP response: " + errorMsg, e); + return new EhvdException(ERROR_EHVD_02, new Object[] { errorMsg }); } - return new EhvdException(ERROR_EHVD_02, new Object[] { errorMsg }); + } |