1 22 23 package org.xquark.xquery.reconstruction; 24 25 import org.xquark.xquery.parser.XQueryException; 26 27 public class ReconstructionException extends XQueryException { 28 29 private static final String RCSRevision = "$Revision: 1.1 $"; 30 private static final String RCSName = "$Name: $"; 31 32 protected int line = -1; 33 protected int column = -1; 34 35 public ReconstructionException(String message) { super(message); } 36 37 public ReconstructionException(String message, int line, int column) { 38 super(message); 39 this.line = line; 40 this.column = column; 41 } 42 43 public String getMessage() { 44 if (line == -1 || column == -1) { return super.getMessage(); } 45 return super.getMessage() + " - encountered at line " + line + " , column " + column; 46 } 47 } 48 | Popular Tags |