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