From ae16000f4c82feff1f4f610d389153ae2e54c016 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Tue, 23 Feb 2021 15:55:38 +0100 Subject: use internal-to-external error mapping for GUI --- .../src/main/java/at/gv/egiz/eaaf/core/api/IStatusMessenger.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'eaaf_core_api/src/main') diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/IStatusMessenger.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/IStatusMessenger.java index bbaf86d3..28d21d89 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/IStatusMessenger.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/IStatusMessenger.java @@ -64,6 +64,7 @@ public interface IStatusMessenger { * @param throwable Reason of error * @return external error code */ + @Nonnull String getResponseErrorCode(Throwable throwable); /** @@ -72,6 +73,7 @@ public interface IStatusMessenger { * @param intErrorCode internal error code * @return external error code */ + @Nonnull String mapInternalErrorToExternalError(String intErrorCode); } -- cgit v1.2.3 From da964d59a926c23ef6a14210b59de30742e1e45c Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Wed, 24 Feb 2021 08:50:14 +0100 Subject: update error-GUI form to differ between internal und external error-codes --- .../src/main/java/at/gv/egiz/eaaf/core/api/IStatusMessenger.java | 2 +- .../eaaf/core/api/idp/auth/services/IProtocolAuthenticationService.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'eaaf_core_api/src/main') diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/IStatusMessenger.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/IStatusMessenger.java index 28d21d89..daf2f6ff 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/IStatusMessenger.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/IStatusMessenger.java @@ -59,7 +59,7 @@ public interface IStatusMessenger { String getMessageWithoutDefault(String messageId, Object[] parameters); /** - * Get external errorCode from from Exception. + * Get internal errorCode from from Exception. * * @param throwable Reason of error * @return external error code diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/services/IProtocolAuthenticationService.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/services/IProtocolAuthenticationService.java index 2c0fe55f..6580fa30 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/services/IProtocolAuthenticationService.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/services/IProtocolAuthenticationService.java @@ -34,6 +34,7 @@ public interface IProtocolAuthenticationService { String PARAM_GUI_ERROMSG = "errorMsg"; String PARAM_GUI_ERRORCODE = "errorCode"; + String PARAM_GUI_EXTERNAL_ERRORCODE = "extErrorCode"; String PARAM_GUI_ERRORCODEPARAMS = "errorParams"; String PARAM_GUI_ERRORSTACKTRACE = "stacktrace"; -- cgit v1.2.3