/** * Create a new XPathSyntaxException wrapping an existing * <code>org.jaxen.saxpath.XPathSyntaxException</code>. * * @param e the exception that caused this exception */ public XPathSyntaxException(org.jaxen.saxpath.XPathSyntaxException e) { super( e ); this.xpath = e.getXPath(); this.position = e.getPosition(); }
/** * <p> * Returns a long formatted description of the error, * including line breaks. * </p> * * @return a longer description of the error on multiple lines */ public String getMultilineMessage() { StringBuffer buf = new StringBuffer(); buf.append( getMessage() ); buf.append( lineSeparator ); buf.append( getXPath() ); buf.append( lineSeparator ); buf.append( getPositionMarker() ); return buf.toString(); }
public String toString() { return getClass() + ": " + getXPath() + ": " + getPosition() + ": " + getMessage(); }