package com.sptg.common.core.util;

import org.springframework.util.Assert;

/**
 * title: AssertUtil
 * package: com.sptg.common.core.util
 * description: 断言工具类
 *
 *                  
 *                
 */
public class AssertUtil extends Assert {

    /**
     * 表达式为False时,抛出异常
     * @param expression 表达式
     * @param message 异常消息
     */
    public static void isFalse(boolean expression, String message) {
        if (expression) {
            throw new IllegalArgumentException(message);
        }
    }

}
