* @param msg error message
*/
public void error(int line, int col, String msg)
throws JDOQueryException
{
JDOQueryException ex;
if (line > 1)
{
// include line and column info
Object args[] = {context, new Integer(line), new Integer(col), msg};
ex = new JDOQueryException(I18NHelper.getMessage(
messages, "jqlc.errormsg.generic.msglinecolumn", args)); //NOI18N
}
else if (col > 0)
{
// include column info
Object args[] = {context, new Integer(col), msg};
ex = new JDOQueryException(I18NHelper.getMessage(
messages, "jqlc.errormsg.generic.msgcolumn", args)); //NOI18N
}
else
{
Object args[] = {context, msg};
ex = new JDOQueryException(I18NHelper.getMessage(
messages, "jqlc.errormsg.generic.msg", args)); //NOI18N
}
logger.throwing("jqlc.ErrorMsg", "error", ex);
throw ex;
}