From cd28c6909a466d39d47866476c93f5bcae8611ab Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Mon, 19 Aug 2019 15:34:13 +0200 Subject: Refactor Error Messages --- src/main/java/at/gv/egiz/moazs/scheme/SOAPUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/at/gv/egiz/moazs/scheme/SOAPUtils.java b/src/main/java/at/gv/egiz/moazs/scheme/SOAPUtils.java index 461d8fe..f44fb3d 100644 --- a/src/main/java/at/gv/egiz/moazs/scheme/SOAPUtils.java +++ b/src/main/java/at/gv/egiz/moazs/scheme/SOAPUtils.java @@ -28,10 +28,10 @@ public class SOAPUtils { private static final Logger log = LoggerFactory.getLogger(SOAPUtils.class); private static final String SOAP_BODY_MISSING_ERROR_MSG = " is missing."; private static final String SOAP_BODY_CHILDREN_MISSING_ERROR_MSG = " has no child elements."; - private static final String APP_DELIVERY_ID_MISSING_ERROR_MSG = " is missing."; - private static final String APP_DELIVERY_ID_EMPTY_ERROR_MSG = " is empty."; - private static final String MULTIPLE_MSG = "Found multiple {} elements. Will choose first element."; private static final String APP_DELIVERY_ID_FULL_TAG_NAME = ""; + private static final String MULTIPLE_MSG = "Found multiple {} elements. Will choose first element."; + private static final String APP_DELIVERY_ID_MISSING_ERROR_MSG = APP_DELIVERY_ID_FULL_TAG_NAME + " is missing."; + private static final String APP_DELIVERY_ID_EMPTY_ERROR_MSG = APP_DELIVERY_ID_FULL_TAG_NAME + " is empty."; public Element toDOM(byte[] bytes) throws IOException, SAXException, ParserConfigurationException { var stream = new ByteArrayInputStream(bytes); -- cgit v1.2.3