All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aluka.nirvana.framework.exception.constant.PermissionErrors Maven / Gradle / Ivy

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