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

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

There is a newer version: 3.6.1.9
Show newest version
package com.founder.mip.exception;

public enum FuncRetCode {
    ERROR_CODE_SUCCESS(0, "请求成功"),
    ERROR_CODE_SIGN_ERROR(1002, "验签失败,请检查一下公钥与拼接串"),
    ERROR_CODE_ENCRYPT_ERROR(1003, "解密失败,请检查一下appID与appSecret"),
    ERROR_CODE_ASN1_ERROR(1004, "解析ASN1格式的SM2签名失败,请检查一下私钥与签名拼接串");

    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