summaryrefslogtreecommitdiff
path: root/eaaf_modules/eaaf_module_auth_sl20/src
diff options
context:
space:
mode:
authorThomas <>2021-03-09 18:01:22 +0100
committerThomas <>2021-03-09 18:11:30 +0100
commit88274ec9fcd35554a5f5f0ddcdef47c5797febd5 (patch)
treeb4ce0f0f727e4c03bcb14df64a5870b07169f8a4 /eaaf_modules/eaaf_module_auth_sl20/src
parentcdd4b4fab65042f962b5ceaf09ce071f10b9526d (diff)
downloadEAAF-Components-88274ec9fcd35554a5f5f0ddcdef47c5797febd5.tar.gz
EAAF-Components-88274ec9fcd35554a5f5f0ddcdef47c5797febd5.tar.bz2
EAAF-Components-88274ec9fcd35554a5f5f0ddcdef47c5797febd5.zip
refactor SL20EidDataValidationException to optimize error handling
Diffstat (limited to 'eaaf_modules/eaaf_module_auth_sl20/src')
-rw-r--r--eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/exceptions/SL20EidDataValidationException.java16
1 files changed, 13 insertions, 3 deletions
diff --git a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/exceptions/SL20EidDataValidationException.java b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/exceptions/SL20EidDataValidationException.java
index 027501bd..f0d993ca 100644
--- a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/exceptions/SL20EidDataValidationException.java
+++ b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/exceptions/SL20EidDataValidationException.java
@@ -5,12 +5,22 @@ public class SL20EidDataValidationException extends SL20Exception {
private static final long serialVersionUID = -2604130523926584663L;
public SL20EidDataValidationException(final Object[] parameters) {
- super("sl20.07", parameters);
+ this("99", parameters);
}
-
+
public SL20EidDataValidationException(final Object[] parameters, final Throwable e) {
- super("sl20.07", parameters, e);
+ this("99", parameters, e);
+
+ }
+
+ public SL20EidDataValidationException(final String subErrorId, final Object[] parameters) {
+ super("sl20.07." + subErrorId, parameters);
+
+ }
+
+ public SL20EidDataValidationException(final String subErrorId, final Object[] parameters, final Throwable e) {
+ super("sl20.07." + subErrorId, parameters, e);
}