diff options
author | Thomas <> | 2023-04-26 19:04:57 +0200 |
---|---|---|
committer | Thomas <> | 2023-04-26 19:04:57 +0200 |
commit | 88f52463fd0d3d8bf467b75798b525ce86886acc (patch) | |
tree | 5c0c2eba19651444f757a76d11ecb51953cd4599 /eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/DefaultErrorService.java | |
parent | 23a754ddce6a407315b8ebb2494b4f0f21bdccbf (diff) | |
download | EAAF-Components-88f52463fd0d3d8bf467b75798b525ce86886acc.tar.gz EAAF-Components-88f52463fd0d3d8bf467b75798b525ce86886acc.tar.bz2 EAAF-Components-88f52463fd0d3d8bf467b75798b525ce86886acc.zip |
feat(core): add extension-point to central errorHandler service to set application specific information into error-GUI model
Diffstat (limited to 'eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/DefaultErrorService.java')
-rw-r--r-- | eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/DefaultErrorService.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/DefaultErrorService.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/DefaultErrorService.java index e41905a6..cd89f8a5 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/DefaultErrorService.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/DefaultErrorService.java @@ -1,13 +1,16 @@ package at.gv.egiz.eaaf.core.impl.idp.auth.services; import java.text.MessageFormat; +import java.util.Collections; import java.util.HashSet; +import java.util.Map; import javax.annotation.PostConstruct; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; +import at.gv.egiz.eaaf.core.api.IRequest; import at.gv.egiz.eaaf.core.api.IStatusMessenger; import at.gv.egiz.eaaf.core.api.gui.ModifyableGuiBuilderConfiguration; import at.gv.egiz.eaaf.core.api.idp.IConfiguration; @@ -35,7 +38,7 @@ public class DefaultErrorService implements IErrorService { } @Override - public IHandleData createHandleData(Throwable throwable, boolean supportRedirctToSp) throws EaafException { + public IHandleData createHandleData(Throwable throwable, IRequest protocolRequest) throws EaafException { String internalErrorId = extractInternalErrorCode(throwable); return HandleData.builder() @@ -101,11 +104,16 @@ public class DefaultErrorService implements IErrorService { @Getter private LogLevel logLevel; + + @Override + public Map<String, String> getAdditionalGuiModelElements() { + return Collections.emptyMap(); + + } public String getPreFormatedErrorMessage() { return MessageFormat.format(TECH_LOG_MSG, internalErrorCode, throwable.getMessage()); - + } - } } |