summaryrefslogtreecommitdiff
path: root/eaaf_core/src
diff options
context:
space:
mode:
authorThomas <>2024-02-05 14:11:45 +0100
committerThomas <>2024-02-05 14:12:09 +0100
commitdd478e0b228a609e04f0b1e5971b524b782bd56c (patch)
treeab256740cd5a5b14b81cdb9a9d9750f7bf1c54ba /eaaf_core/src
parent193fa9b0a5243497a4bb1b6885dff584ff06920f (diff)
downloadEAAF-Components-dd478e0b228a609e04f0b1e5971b524b782bd56c.tar.gz
EAAF-Components-dd478e0b228a609e04f0b1e5971b524b782bd56c.tar.bz2
EAAF-Components-dd478e0b228a609e04f0b1e5971b524b782bd56c.zip
fix(core): use centrial error-handling service to map internal to external error-codes
Diffstat (limited to 'eaaf_core/src')
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java6
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 ef293f64..00768519 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
@@ -584,18 +584,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);
}
}