1 37 package org.webharvest.exception; 38 39 42 public class ErrMsg { 43 44 public static String missingAttribute(String tagName, String attName) { 45 return "Configuration error: attribute \"" + attName + "\" is required in element \"" + tagName + "\"!"; 46 } 47 48 public static String invalidAttribute(String tagName, String attName) { 49 return "Configuration error: attribute \"" + attName + "\" is not allowed in element \"" + tagName + "\"!"; 50 } 51 52 public static String missingTag(String parantTagName, String tagName) { 53 return "Configuration error: element \"" + tagName + "\" is required inside element \"" + parantTagName + "\"!"; 54 } 55 56 public static String invalidTag(String parantTagName, String tagName) { 57 return "Configuration error: element \"" + tagName + "\" is not allowed inside element \"" + parantTagName + "\"!"; 58 } 59 60 } | Popular Tags |