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

com.founder.fsi.exception.FuncRetCode Maven / Gradle / Ivy

package com.founder.fsi.exception;

public enum FuncRetCode {
    ERROR_CODE_NET_ERROR(1001, "网络异常,请求接口失败");

    private final int value;
    private String message;

    private FuncRetCode(int value) {
        this.value = value;
    }

    private FuncRetCode(int value, String message) {
        this.value = value;
        this.message = message;
    }

    public int value() {
        return this.value;
    }

    public String toString() {
        return this.name() + ":" + this.value + ":" + this.message;
    }

    public static FuncRetCode convert(int value) {
        FuncRetCode[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            FuncRetCode v = var1[var3];
            if (v.value() == value) {
                return v;
            }
        }

        return null;
    }

    public String getMessage() {
        return this.message;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy