public class BaseException extends RuntimeException {
/**
* 序列化ID
*/
private static final long serialVersionUID = 1L;
/**
* 构造函数
*/
public BaseException() {
}
/**
* 构造函数
*
* @param t
* 异常
*/
public BaseException(Throwable t) {
super(t);
}
}
public class InvalidParameterException extends BaseException {
/**
* 序列化ID
*/
private static final long serialVersionUID = 1L;
}
/**
* Null值判断
*
* @param obj 对象
*/
private static void assertNotNull(Object obj) {
if (null == obj) {
throw new InvalidParameterException();
}
}