From 506c35217a28958f65c427a5ca56288eca5c12a0 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Thu, 6 Jun 2019 13:31:52 +0200 Subject: update UnavailableAttributeException --- .../at/gv/egiz/eaaf/core/exceptions/AttributeBuilderException.java | 4 ++-- .../main/java/at/gv/egiz/eaaf/core/exceptions/EAAFIDPException.java | 5 +++++ .../gv/egiz/eaaf/core/exceptions/UnavailableAttributeException.java | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/exceptions/AttributeBuilderException.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/exceptions/AttributeBuilderException.java index efeecbe5..f02b3bf6 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/exceptions/AttributeBuilderException.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/exceptions/AttributeBuilderException.java @@ -30,8 +30,8 @@ public class AttributeBuilderException extends EAAFIDPException { private static final long serialVersionUID = 1L; - public AttributeBuilderException(String msg) { - super(msg); + public AttributeBuilderException(String attrName) { + super("builder.12", new Object[] {attrName}); } } diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/exceptions/EAAFIDPException.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/exceptions/EAAFIDPException.java index 8af806d0..7f504a5a 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/exceptions/EAAFIDPException.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/exceptions/EAAFIDPException.java @@ -38,4 +38,9 @@ public class EAAFIDPException extends EAAFException { } + public EAAFIDPException(String msg, Object[] params) { + super(msg, params); + + } + } diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/exceptions/UnavailableAttributeException.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/exceptions/UnavailableAttributeException.java index d87af4d1..626cbea7 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/exceptions/UnavailableAttributeException.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/exceptions/UnavailableAttributeException.java @@ -33,10 +33,10 @@ public class UnavailableAttributeException extends AttributeBuilderException { */ private static final long serialVersionUID = -1114323185905118432L; - private String attributeName; + private final String attributeName; public UnavailableAttributeException(String attributeName) { - super("Attribute " + attributeName + " is not available."); + super(attributeName); this.attributeName = attributeName; } -- cgit v1.2.3