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

com.easy.core.enumx.FailureEnum Maven / Gradle / Ivy

The newest version!
package com.easy.core.enumx;

import lombok.Getter;

/**
 * 请求失败状态信息定义
 * @author liuph
 */
@Getter
public enum FailureEnum {

    // ****************************************** 服务内部错误 100_000 ~ 100_099 *************************************************************
    AUTH_TOKEN_EXPIRED(100_000,"token失效,请重新登录"),

    SYSTEM_INNER_ERROR(100_001,"服务内部错误: "),

    FEIGN_INVOKE_ERROR(100_002,"远程调用失败"),

    // ****************************************** 认证错误 100100 ~ 100199 *************************************************************
    AUTH_FAIL(100100,"access token was invalid"),

    SSO_TOKEN_FEIGN_EXCEPTION(100101,"sso token 回调接口异常"),

    SSO_REDIRECT_EXCEPTION(100102,"sso 重定向异常"),

    // 参数问题 100200 ~ 100299
    PARAM_ERROR(100200,"param error"),

    GIT_FETCH_EXCEPTION(100201,"获取git仓库信息异常"),

    GRAY_ENV_NOT_EXIST(100202,"此灰度环境不存在,或已删除")
    ;

    private int code;

    private String msg;

    FailureEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy