private static String createMessage(String message, String expression, int pos, int line, int column) {
        String result = "Syntax error at line " + line + " column " + column;

        if (pos <= expression.length()) {
            result += ", near `" + expression.substring(pos) + "`";
        }

        return result + ": " + message + "; expression: " + expression;
    }
Exception thrown when a selector expression is invalid.
smithy-model/src/main/java/software/amazon/smithy/model/selector/SelectorSyntaxException.java