com.aluka.nirvana.framework.exception.constant.CommonErrors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nirvana-exception Show documentation
Show all versions of nirvana-exception Show documentation
Exception configuration of Nirvana Projects.
The newest version!
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 CommonErrors implements ErrorEnumInterface {
/**
*
*/
COMMON_ERROR(new ErrorInfo("X0000", "通用异常")),
UNKNOWN_ERROR(new ErrorInfo("X0001", "未知异常")),
AUTH_EMPTY_ERROR(new ErrorInfo("X0002", "用户信息为空")),
COMMUNICATION_ERROR(new ErrorInfo("X0100", "通讯异常"));
private ErrorInfo errorInfo;
CommonErrors(ErrorInfo errorInfo) {
this.errorInfo = errorInfo;
}
@Override
public ErrorInfo getErrorInfo() {
return this.errorInfo;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy