com.aluka.nirvana.framework.exception.constant.ArgumentErrors Maven / Gradle / Ivy
package com.aluka.nirvana.framework.exception.constant;
import com.aluka.nirvana.framework.exception.model.ErrorEnumInterface;
import com.aluka.nirvana.framework.exception.model.ErrorInfo;
/**
* 参数通用错误枚举
* @author gongli
* @since 2019/12/25
*/
public enum ArgumentErrors implements ErrorEnumInterface {
/**
* 参数错误
*/
ARGUMENT_ERROR(new ErrorInfo("01000", "参数错误")),
NOT_NULL(new ErrorInfo("10100", "参数不能为null")),
NOT_NULL_EMPTY(new ErrorInfo("10101", "参数不能为null或空值"));
private ErrorInfo errorInfo;
ArgumentErrors(ErrorInfo errorInfo) {
this.errorInfo = errorInfo;
}
@Override
public ErrorInfo getErrorInfo() {
return this.errorInfo;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy