presto-main/src/main/java/io/prestosql/util/Failures.java/Failures/checkCondition
class Failures:    public static void checkCondition(boolean condition, ErrorCodeSupplier errorCode, String formatString, Object... args)
    {
        if (!condition) {
            throw new PrestoException(errorCode, format(formatString, args));
        }
    }