summaryrefslogtreecommitdiff
path: root/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ErrorTicketService.java
diff options
context:
space:
mode:
Diffstat (limited to 'eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ErrorTicketService.java')
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ErrorTicketService.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ErrorTicketService.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ErrorTicketService.java
index 673b53c2..8bcb5305 100644
--- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ErrorTicketService.java
+++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ErrorTicketService.java
@@ -68,13 +68,15 @@ public class ErrorTicketService {
if (StringUtils.isEmpty(ticketConfPath)) {
log.error("Error: Path to errorhandling action configuration not known");
- throw new EaafException("Error: Path to errorhandling action configuration not known");
+ throw new EaafException("internal.configuration.00",
+ new Object[]{CONFIG_PROP_ERRORHANDLING_ACTION_PATH});
} else {
Properties getProperties = new Properties();
+ String fullFilePath = null;
try {
- final String fullFilePath = FileUtils
+ fullFilePath = FileUtils
.makeAbsoluteUrl(ticketConfPath, basicConfig.getConfigurationRootDirectory());
final Resource ressource = resourceLoader.getResource(fullFilePath);
final InputStream is = ressource.getInputStream();
@@ -86,8 +88,9 @@ public class ErrorTicketService {
// log.error("working: " + propertyMap.get("auth.00"));
} catch (Exception e) {
- log.error("Error: something went wrong", e);
- throw new EaafException("Error: Parsing errorhandling actions failed", new Object[]{}, e);
+ log.error("Error: could not found file.", e);
+ throw new EaafException("internal.configuration.01",
+ new Object[]{CONFIG_PROP_ERRORHANDLING_ACTION_PATH, "File cloud not be found."});
}
}
}
@@ -153,7 +156,7 @@ public class ErrorTicketService {
} else {
data.generateSupportTicket();
throw new EaafException("internal.configuration.00",
- new Object[]{data.errorCode + "in on_error_action" + ".properties"});
+ new Object[]{data.errorCode + " in on_error_action" + ".properties"});
}
}