errors.addException(newParseException("Coordinate system \""+((operandinstanceofStringConstant)?((StringConstant)operand).getValue():coordSys.toString())+"\" (= \""+coordSys.toFullSTCS()+"\") not allowed in this implementation."));// TODO Missing object position! + List of accepted coordinate systems
errors.addException(newParseException("Coordinate system \""+((operandinstanceofStringConstant)?((StringConstant)operand).getValue():coordSys.toString())+"\" (= \""+coordSys.toFullSTCS()+"\") not allowed in this implementation. "+buf.toString(),operand.getPosition()));
}
}
/**
@@ -1060,7 +1073,7 @@ public class DBChecker implements QueryChecker {
// check whether the regions (this one + the possible inner ones) and the coordinate systems are allowed:
@@ -1155,17 +1168,17 @@ public class DBChecker implements QueryChecker {
case'G':
case'g':
if(!unknown.isGeometry())
errors.addException(newParseException("Type mismatch! A geometry was expected instead of \""+unknown.toADQL()+"\"."));// TODO Add the ADQLOperand position!
errors.addException(newParseException("Type mismatch! A geometry was expected instead of \""+unknown.toADQL()+"\".",result.getPosition()));
break;
case'N':
case'n':
if(!unknown.isNumeric())
errors.addException(newParseException("Type mismatch! A numeric value was expected instead of \""+unknown.toADQL()+"\"."));// TODO Add the ADQLOperand position!
errors.addException(newParseException("Type mismatch! A numeric value was expected instead of \""+unknown.toADQL()+"\".",result.getPosition()));
break;
case'S':
case's':
if(!unknown.isString())
errors.addException(newParseException("Type mismatch! A string value was expected instead of \""+unknown.toADQL()+"\"."));// TODO Add the ADQLOperand position!
errors.addException(newParseException("Type mismatch! A string value was expected instead of \""+unknown.toADQL()+"\".",result.getPosition()));
thrownewParseException("a numeric was expected!",newTextPosition(1,pos-token.length(),1,pos));// TODO Check the begin and end!
thrownewParseException("a numeric was expected!",newTextPosition(1,pos-token.length(),1,pos));
}
/**
@@ -1415,7 +1415,7 @@ public final class STCS {
if(peinstanceofEOEException)
throwpe;
else
thrownewParseException("a coordinates pair (2 numerics separated by one or more spaces) was expected!",newTextPosition(1,startPos,1,pos));// TODO Check the begin and end!
thrownewParseException("a coordinates pair (2 numerics separated by one or more spaces) was expected!",newTextPosition(1,startPos,1,pos));
super("Unresolved function: \""+fct.toADQL()+"\"! No UDF has been defined or found with the signature: "+getFctSignature(fct)+".");// TODO Add the position of the function in the ADQL query!
super("Unresolved function: \""+fct.toADQL()+"\"! No UDF has been defined or found with the signature: "+getFctSignature(fct)+".",fct.getPosition());
functionInError=fct;
}
@@ -64,7 +77,7 @@ public class UnresolvedFunctionException extends ParseException {