package com.govmade.common.utils;
import org.apache.commons.lang.StringUtils;
import com.govmade.common.exception.RRException;
/**
* 数据校验
*
*/
public abstract class Assert {
public static void isBlank(String str, String message) {
if (StringUtils.isBlank(str)) {
throw new RRException(message);
}
}
public static void isNull(Object object, String message) {
if (object == null) {
throw new RRException(message);
}
}
}
-
Administrator authoredbbaf2162