com.aluka.nirvana.framework.exception.constant.PermissionErrors 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 PermissionErrors implements ErrorEnumInterface {
/**
*
*/
NO_PERMISSION(new ErrorInfo("01001", "无权限访问")),
NOT_TOKEN(new ErrorInfo("01002", "无法识别或未找到Token")),
;
private ErrorInfo errorInfo;
PermissionErrors(ErrorInfo errorInfo) {
this.errorInfo = errorInfo;
}
@Override
public ErrorInfo getErrorInfo() {
return this.errorInfo;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy