1 7 8 package org.dom4j; 9 10 19 public class XPathException extends RuntimeException { 20 21 private String xpath; 22 23 public XPathException(String xpath) { 24 super("Exception occurred evaluting XPath: " + xpath); 25 this.xpath = xpath; 26 } 27 28 public XPathException(String xpath, String reason) { 29 super("Exception occurred evaluting XPath: " + xpath + " " + reason); 30 this.xpath = xpath; 31 } 32 33 public XPathException(String xpath, Exception e) { 34 super("Exception occurred evaluting XPath: " + xpath + ". Exception: " 35 + e.getMessage()); 36 this.xpath = xpath; 37 } 38 39 44 public String getXPath() { 45 return xpath; 46 } 47 } 48 49 85 | Popular Tags |