diff options
author | Thomas <> | 2024-02-05 14:11:45 +0100 |
---|---|---|
committer | Thomas <> | 2024-02-05 14:11:45 +0100 |
commit | cf96fc9847809b5aee2f37659fb6a1a3a6db0372 (patch) | |
tree | e9e55d4f09fea71db5e8e4958206cadd29c83010 /eaaf_core | |
parent | 6fd8710309da431d54b6ea84b261d62a1d30348d (diff) | |
download | EAAF-Components-cf96fc9847809b5aee2f37659fb6a1a3a6db0372.tar.gz EAAF-Components-cf96fc9847809b5aee2f37659fb6a1a3a6db0372.tar.bz2 EAAF-Components-cf96fc9847809b5aee2f37659fb6a1a3a6db0372.zip |
fix(core): use centrial error-handling service to map internal to external error-codes
Diffstat (limited to 'eaaf_core')
-rw-r--r-- | eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java index b1f45801..65041c92 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java @@ -593,18 +593,18 @@ public class ProtocolAuthenticationService implements IProtocolAuthenticationSer // write error message writeHtmlErrorResponse(req, resp, e.getMessage(), internalErrorCode, e instanceof EaafException ? ((EaafException) e).getParams() : null, - statusMessager.mapInternalErrorToExternalError(internalErrorCode), errorData); + errorTicketService.getExternalCodeFromInternal(internalErrorCode), errorData); } else if (e instanceof EaafException) { // send HTML formated error message writeHtmlErrorResponse(req, resp, e.getMessage(), internalErrorCode, ((EaafException) e).getParams(), - statusMessager.mapInternalErrorToExternalError(internalErrorCode), errorData); + errorTicketService.getExternalCodeFromInternal(internalErrorCode), errorData); } else { // write generic message for general exceptions final String msg = statusMessager.getMessage(IStatusMessenger.CODES_INTERNAL_ERROR_GENERIC, null); writeHtmlErrorResponse(req, resp, msg, internalErrorCode, null, - statusMessager.mapInternalErrorToExternalError(internalErrorCode), errorData); + errorTicketService.getExternalCodeFromInternal(internalErrorCode), errorData); } } |