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

com.nxyfan.framework.common.enums.CommonExceptionEnum Maven / Gradle / Ivy

package com.nxyfan.framework.common.enums;

import lombok.Getter;

/**
 *
 * 响应码枚举
 * @author amour
 * @date 2022/8/15 16:09
 **/
@Getter
public enum CommonExceptionEnum {

    OK100(100, "请求成功"),
    ERROR401(401, "未登录"),
    ERROR403(403, "无权限"),
    ERROR404(404, "路径不存在"),
    ERROR405(405, "请求方法不正确"),
    ERROR415(415, "参数传递异常"),
    ERROR400(400, "业务异常"),
	ERROR500(500, "出错了,请联系工程师");
	
    private final Integer code;

    private final String message;

    CommonExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy