*/
public static void handleANTLRException(ANTLRException ex, ErrorMsg errorMsg)
{
if (ex instanceof MismatchedCharException)
{
MismatchedCharException mismatched = (MismatchedCharException)ex;
if (mismatched.mismatchType == MismatchedCharException.CHAR)
{
if (mismatched.foundChar == EOF_CHAR)
{
errorMsg.error(mismatched.getLine(), mismatched.getColumn(),
I18NHelper.getMessage(messages, "jqlc.parser.unexpectedEOF")); //NOI18N
}
else
{
errorMsg.error(mismatched.getLine(), mismatched.getColumn(),
I18NHelper.getMessage(messages, "jqlc.parser.expectedfoundchar", //NOI18N
String.valueOf((char)mismatched.expecting),
String.valueOf((char)mismatched.foundChar)));
}
return;