@Test public void testConstructor() { String pattern = "test"; XMLException x = new XMLException(pattern); assertTrue(("ERROR : The Pattern \"" + pattern + "\" passed in the compile pattern does not " + "follow the required XML syntax standard").equals(x.toString())); }
public String toString() { if (this.pattern != null) return "ERROR : The Pattern \"" + pattern + "\" passed in the compile pattern does not " + "follow the required XML syntax standard"; else return "The compile pattern does not follow the required XML syntax standard"; }
XMLException extends Exception { public String toString() { if (this.pattern != null) return "ERROR : The Pattern \"" + pattern + "\" passed in the compile pattern does not " + "follow the required XML syntax standard"; else return "The compile pattern does not follow the required XML syntax standard"; } }
XMLException extends Exception { public String toString() { if (this.pattern != null) return "ERROR : The Pattern \"" + pattern + "\" passed in the compile pattern does not " + "follow the required XML syntax standard"; else return "The compile pattern does not follow the required XML syntax standard"; } XMLException(String input);  XMLException(); }
XMLException extends Exception { public String toString() { if (this.pattern != null) return "ERROR : The Pattern \"" + pattern + "\" passed in the compile pattern does not " + "follow the required XML syntax standard"; else return "The compile pattern does not follow the required XML syntax standard"; } XMLException(String input);  XMLException(); String toString(); }
XMLException extends Exception { public String toString() { if (this.pattern != null) return "ERROR : The Pattern \"" + pattern + "\" passed in the compile pattern does not " + "follow the required XML syntax standard"; else return "The compile pattern does not follow the required XML syntax standard"; } XMLException(String input);  XMLException(); String toString();  }