presto-main/src/main/java/io/prestosql/type/LikeFunctions.java/LikeFunctions/checkEscape
class LikeFunctions:    private static void checkEscape(boolean condition)
    {
        checkCondition(condition, INVALID_FUNCTION_ARGUMENT, "Escape character must be followed by '%%', '_' or the escape character itself");
    }