/* */ package org.jaxen;
/* */
/* */ import org.jaxen.saxpath.
XPathSyntaxException;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class
XPathSyntaxException
/* */ extends
JaxenException
/* */ {
/* */ private static final long
serialVersionUID = 1980601567207604059L;
/* */ private
String xpath;
/* */ private int
position;
/* */
/* */ public
XPathSyntaxException(
XPathSyntaxException e) {
/* 77 */ super((
Throwable)
e);
/* */
/* 79 */ this.
xpath =
e.
getXPath();
/* 80 */ this.
position =
e.
getPosition();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public
XPathSyntaxException(
String xpath, int
position,
String message) {
/* 93 */ super(
message);
/* */
/* 95 */ this.
xpath =
xpath;
/* 96 */ this.
position =
position;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public int
getPosition() {
/* 105 */ return this.
position;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public
String getXPath() {
/* 114 */ return this.
xpath;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public
String getPositionMarker() {
/* 131 */
StringBuffer buf = new
StringBuffer();
/* */
/* 133 */ int
pos =
getPosition();
/* */
/* 135 */ for (int
i = 0;
i <
pos;
i++)
/* */ {
/* 137 */
buf.
append(" ");
/* */ }
/* */
/* 140 */
buf.
append("^");
/* */
/* 142 */ return
buf.
toString();
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public
String getMultilineMessage() {
/* 159 */
StringBuffer buf = new
StringBuffer(
getMessage());
/* 160 */
buf.
append("\n");
/* 161 */
buf.
append(
getXPath());
/* 162 */
buf.
append("\n");
/* */
/* 164 */
buf.
append(
getPositionMarker());
/* */
/* 166 */ return
buf.
toString();
/* */ }
/* */ }
/* Location: /Users/tommy/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar!/org/jaxen/XPathSyntaxException.class
* Java compiler version: 2 (46.0)
* JD-Core Version: 1.1.3
*/