public SiddhiParserException newSiddhiParserException(ParserRuleContext context, String message) {

        return new SiddhiParserException("Syntax error in SiddhiQL, near '" + context.getText() + "', " + message + ".",
                new int[]{context.getStart().getLine(), context.getStart().getCharPositionInLine()},
                new int[]{context.getStop().getLine(), context.getStop().getCharPositionInLine()});
    }
{@inheritDoc}
<p>The default implementation returns the result of calling
{@link #visitChildren} on {@code ctx}.</p>

@param ctx
modules/siddhi-query-compiler/src/main/java/io/siddhi/query/compiler/internal/SiddhiQLBaseVisitorImpl.java