---
# System prepended metadata

title: 错误码

---

```java
/*
 * yhty
 */
package com.yh.core;

import cn.hutool.core.util.StrUtil;

import java.io.Serializable;

/**
 * 基本异常类
 *
 * @author lixin 2017-08-03 17:46
 */
public class BaseException extends RuntimeException implements Serializable {

    public BaseException(BaseExceptionEnum exceptionMessage) {
        super(exceptionMessage.toString());
    }

    public BaseException(BaseExceptionEnum exceptionMessage, Object... params) {
        super(StrUtil.format(exceptionMessage.toString(), params));
    }


    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }


    /*异常信息定义*/
    public enum BaseExceptionEnum {

        //-----------------系统异常定义 [9000~9499]--------------------------
        Server_Error("9999", "Server error"),
        Success("0000", "Success"),
        Ilegal_Request("9001", "Ilegal request"),
        Session_Error("9002", "Session Expired"),
        Ilegal_Param("9003", "Parameter is ilegal"),
        Empty_Param("9004", "Parameter is empty"),
        Exists("9005", "There is already exists"),
        Result_Not_Exist("9006", "The query result does not exist"),
        Repeat_Request("9007", "repeat request error"),
        Request_Expired("9008", "request expired"),
        Captcha_Error("9009", "The captcha error"),
        Sign_Error("9010", "The sign error"),
        Ilegal_Data("9011", "Ilegal data error"),
        Ilegal_Domain("9012", "Ilegal domain error"),
        Expired_Domain("9013", "Expired domain error"),
        The_System_Is_Busy_Please_Try_Again_Later("9015", "The System Is Busy, Please Try Again Later."),
        Cannot_ResubmitApplication("9016", "Cannot resubmit application！"),
        Locked_Error("9017", "The player wallet not get the lock"),
        Operation_Failed("9018", "Error, Please contact administrator!"),
        Account_Login_Other_Device("9019", "The account login in on other devices"),
        Ilegal_Data_UserId("9020", "Illegal user, different from the user in the previous stage"),
        Login_Failed("9021", "Illegal user"),
        Google_Code_Error("9022", "google code error"),

        //-----------------订单相关定义[9500~9699]--------------------------,
        Order_Not_Exist("9500", "The order not exist"),
        Place_Bet_Error("9501", "The Bet error"),
        Order_Early_Settled_Submit_Error("9502", "The Submit error"),
        Order_Player_Error("9503", "The Order user can't found in system."),
        Order_Player_Account_Error("9504", "The Order player account can't found in system."),
        Order_Not_Early_Settled("9505", "This order cannot be settled in advance"),
        Order_Early_Settled_Error("9506", "The Query error"),

        //-----------------用户相关定义[1000~1100]--------------------------,
        Player_UserName_Error("1000", "The Username or password  error"),
        Player_UserName_Exist("1001", "build exist"),
        Player_Balance_Not_Enough("1002", "The balance not enough"),
        PlayerWallet_Not_Exist("1003", "The player wallet not exist error"),
        Player_Not_Exist("1004", "The player not exist error"),
        Player_Bankcard_Not_Exist("1005", "The bank card not exist"),
        Player_Password_Error("1006", "The  password  error"),
        Player_Supperior_Account_Not_Exist("1007", "The superior account not exist error"),
        Player_Vip_Grade_Not_Exist("1008", "The user vip level error"),
        Player_Game_UserName_Error("1009", "The player game username in IM game not exist error"),
        Player_Status_Error("1010", "The player status error"),
        Player_Agent_Has_Been_Activated("1011", "Agent has been activated！"),
        Player_Agent_Active_Doing("1012", "The background has received the application and is in the process of approval！"),
        Player_Bankcard_Upper_Limit("1013", "The bankcard upper limit"),
        Player_Blockchain_Upper_Limit("1014", "The blockchain upper limit"),
        Player_Register_Error("1015", "The player register error"),
        Player_Register_Exist_Error("1016", "The player username exist error"),
        Player_Bankcard_Bind_Error("1017", "The bankcard bind error"),
        Player_Address_Bind_Error("1018", "The address bind error"),
        Player_Venue_Game_Url_Error("1019", "The player's last game was still being settled, please try again later"),
        Player_Venue_Deduct_Score_Error("1020", "The settlement of the player's game venue has not been completed, please try again after 1-5 minutes"),
        Player_Balance_Change_Locked("1021", "The player balance change locked"),
        Player_Wallet_Balance_Update_Error("1022", "The player balance update error"),
        Player_Phone_Error("1023", "The mobile number is invalid, please try again"),
        Bankcard_Is_Black_Error("1024", "The bankcard is black error"),

        //-----------------聊天室相关定义[1101~1200]--------------------------,
        Player_Not_Join_Chatroom("1101", "The Player not join in the chatroom"),
        Chatroom_Message_Not_Exist("1102", "The message not exist"),
        Chatroom_Send_Too_Quick("1103", "Tthe Message send too quick"),

        //----------------- 相关定义[1301~1400]--------------------------,
        SportQuota_Not_Exist("1301", "The sport quota result not exist"),

        //-----------------支付 相关定义[1401~1500]--------------------------,
        Ilegal_Order("1401", "The ilegal order"),
        Channel_Not_Exist("1402", "The channel not exist"),
        Amount_Error("1403", "The amount is ilegal"),
        SitePaymentPlatform_Not_Exist("1404", "The site payment channel not exist"),
        Template_Not_Exist("1405", "The template not exist"),
        ParamDefault_Not_Exist("1406", "The channel don't have param error"),
        PaymentChannelResponse("1407", "The channel response not exist"),
        Ilegal_Response("1408", "The response is ilegal"),
        Url("1409", "url for browser"),
        Withdraw_Error("1410", "withdraw error"),
        Bank_Not_Exist("1411", "The bank not exist"),
        Param_Not_Exist("1412", "The channel param not exist"),
        PaymentCategory_Not_Exist("1413", "The Payment category not exist"),
        Exchange_Rate_Not_Exist("1414", "The exchange rate not exist"),
        Withdraw_Times_Limit_Error("1415", "The withdraw times limit"),
        Withdraw_Balance_Limit_Error("1416", "The withdraw maximum balance limit"),
        Withdraw_Minimum_Limit_Error("1417", "The withdraw minimum balance limit "),
        Withdraw_Maximum_Limit_Error("1418", "The withdraw once maximum balance limit "),
        Withdraw_Rule_Not_Exist("1419", "The withdraw rule not exist"),


        //-----------------站点 相关定义[1501~1650]--------------------------,
        Site_Ilegal("1501", "The site is ilegal"),
        SiteVipGrade_Not_Exist("1502", "The site vip not exist"),
        SiteVipGrade_Modify_Parameter_Ilegal("1503", "The paramter {} is ilegal"),
        SiteVipGrade_Data_Cannot_Be_Deleted("1504", "The VipGrade Data Cannot Be Deleted!"),
        Site_Not_Exist("1505", "The site not exist"),
        SiteSearchWords_Operate_Ilegal("1506", "The moveOperate is ilegal"),
        SystemNotify_Type("1507", "The notify type is ilegal"),
        SiteDiscount_Not_Exist("1508", "The discount not exist"),
        SiteVipGrade_Data_Parameter_Numerical_Order_Error("1509", "The vipGrade【{},{}】，parameter【{}】is ilegal！"),
        Site_Agent_Username_Exists("1510", "Agent Account Already Exists！"),
        Site_General_Agent_Level_Config_Not_Exists("1511", "The Master Agent Level Is Not Configured！"),
        Site_Agent_Not_Exists("1512", "The Agent Is Not Exists！"),
        Site_Agent_Not_Bound_To_Contract("1513", "The Agent Is Not Bound To Contract！"),
        Site_Agent_At_Lowest_Level_Cannot_Create_Sub_Agent("1514", "The agent is at the lowest level, cannot create subordinate agent！"),
        Site_Agent_Level_Config_Not_Exists("1515", "The Agent Level Is Not Configured！"),
        Site_Agent_Account_Already_Exists_In_The_Player_System("1516", "The agent account already exists！"),
        Site_Rcord_Is_under_review("1517", "This player record is under review！"),
        Site_Agent_Modify_Data_Not_Changed("1518", "Data has not changed！"),
        Site_Agent_Overflow_Invoice_Site_Cross("1519", "Operation failed, player and agent must be on the same site!"),
        Site_Agent_Overflow_Invoice_Application_Failed("1520", "Apply failed, cannot submit application again!"),
        Site_Agent_Not_Signed("1521", "The Agent Not Signed！"),
        Site_Player_Agent_Not_Same("1522", "The Player is Not The Same Site As The Agent！"),
        Site_Player_Label_Name_Length("1523", "Please enter 2 to 10 characters！"),
        SiteVipGrade_Must_Select_One_Upgrade_Condition("1524", "You must select one upgrade condition！"),
        Site_StartTime_Earlier_EndTime("1525", "start time is earlier than end time！"),
        AppPublish_Not_Exist("1526", "The app publish not exist"),
        Site_Status_Illegal("1527", "Illegal state"),
        AppPublish_Exist("1528", "The app publish version exist"),
        AppPublish_Version_Lower_Error("1529", "The app publish version too low"),
        BlockchainExchangeRate_Not_Exist("1530", "The exchange rate not exist"),
        Site_Bankcard_Not_Exist("1531", "The bank card not exist"),
        Site_Blockchain_Not_Exist("1532", "The address not exit"),
        Site_StartTime_In_ShelfTime("1533", "The start time needs to be in the shelf time！"),
        Site_Must_Upload_Picture("1534", "Please upload a picture！"),
        Sms_Code_Error("1535", "The sms code error"),
        Site_Review_Operation_Failed("1536", "Operation Failed，The order status has changed, please refresh and try again！"),
        withdraw_lowest_amount_set_Failed("1537", "Operation Failed，The bank card Single withdraw lowest Amount must greater than lowest Amount！"),
        withdraw_lowest_blockchain_set_Failed("1538", "Operation Failed，The blockchain single withdraw lowest amount must greater than lowest Amount！"),
        Domain_Wrong_Status("1539", "current domain wrong status！"),
        Sms_Expired_Error("1540", "The sms code not exist"),
        Sms_Repeat_Error("1541", "The sms code repeat send."),
        Modify_One_Day_Error("1542", "Can only be modified once a day."),
        Player_Welfare_Not_Exist("1543", "The Welfare not exist."),
        SitePromo_Not_Exists("1544", "The promo not exist."),
        SitePromoOrder_Not_Exist("1545", "The promo order not exist."),
        SitePromo_Join_Times_Limit("1546", "Join promo times limit error."),
        SitePromo_Join_Not_Bind_Phone_Error("1547", "The promo limit binding phone."),
        SitePromo_Join_Not_Bind_Bankcard_Error("1548", "The promo limit binding bankcard."),
        SitePromo_Join_Deny_Player_Error("1549", "The deny player error."),
        SitePromo_Join_Deny_Player_Grade_Error("1550", "The deny player grade error."),
        SitePromo_Join_Deny_Player_Label_Error("1551", "The deny player label error."),
        SitePromo_Venue_Not_Exist("1552", "The venue not exist."),
        SitePromo_Join_Config_Error("1553", "The promo join config is error."),
        SitePromo_Join_Confi_Rules_Error("1554", "The promo join config rules is error."),
        SitePromo_Join_PlayerGrade_Not_Exist("1555", "The player vip not exist."),
        SitePromo_Join_PlayerLabel_Not_Exist("1556", "The player label not exist."),
        SitePromo_Join_Deposit_Error("1557", "The player deposit not enough error"),
        SitePromo_Join_Bet_Error("1558", "The player bet not enough error"),
        SitePromo_Join_No_Bet_Order_Error("1559", "The player don't have enough order error."),
        SitePromo_Join_Check_failed("1560", "The promo join check failed."),
        SitePromo_Venue_No_Config_Error("1561", "The player don't have enough order error."),
        SitePromo_Not_Up_Index("1562", "The player index not up error."),
        SitePromo_Index_Config_Error("1563", "The promo index rules is not configured."),
        SitePromo_Index_Rules_Not_Config("1564", "The promo index rules is not configured."),
        SitePromo_Index_Rules_Config_Error("1565", "The promo index rules config is error."),
        SitePromo_Index_Deposit_Error("1566", "The player deposit not enough error"),
        SitePromo_Index_Bet_Error("1567", "The player bet not enough error"),
        SitePromo_Index_No_Bet_Order_Error("1568", "The player don't have enough order error."),
        SitePromo_Title_Exists("1569", "The promo title is existed."),
        SitePromo_Sort_Exists("1570", "The promo sort number is existed."),
        Set_Release_Time_Earlier_Failed("1571", "The release_time earlier than show begin time."),
        SitePromo_Index_Not_Exists("1572", "The index not not up to standard error."),
        SitePromoOrder_Too_Many_Times_Limit("1573", "The promo prize is too many times."),
        SitePromo_Only_One_Can_Be_Enabled("1574", "The promo only one allow enable."),
        SitePromo_Order_Exists("1575", "The promo order exist."),
        SitePromoAwardConfig_Not_Exists("1576", "The promo award config not exist."),
        Set_Release_Time_Later_Failed("1577", "The release_time later than show end time."),


        //-----------------场馆 相关定义 【1651~1700】-----------------------
        AG_Api_Error("1651", "The third Api AG error"),
        GAME_Player_Username_Not_Found("1652", "Game username not found"),
        CQ9_Api_Error("1653", "The third Api CQ9 error"),
        GAME_MAINTENANCE("1654", "Game under maintenance"),
        JDB_Api_Error("1655", "The third Api JDB error"),
        KY_Api_Error("1656", "The third Api KY error"),
        //PM体育三方调用错误定义
        PM_Api_Error("1657", "The third Api PM error"),
        //BG捕鱼三方调用错误异常定义
        BG_Fish_Api_Error("1658", "The third Api BGFish error"),


        //-----------------订单 相关定义 【1701~1750】-----------------------
        Order_Not_Bet("1701", "This betting item cannot be bet, please wait a moment before betting"),

        //-----------------代理 相关定义 【1801~1850】-----------------------
        Agent_Password_Error("1801", "The password error"),
        Agent_Status_Error("1802", "The agent status error"),
        Agent_Balance_Not_Enough_Error("1803", "The agent balance not enough error"),
        Agent_Wallet_Not_Exist_Error("1804", "The Agent wallet not exist"),
        Agent_Withdraw_Password_Error("1805", "The withdraw password error"),
        Player_Overflow_Error("1806", "The player overflow reject error"),
        Agent_Rebate_Amount_Error("1807", "The rebate amount not enough error"),
        Agent_Has_Signed_Error("1808", "Agent has signed"),
        No_Contract_Data_Exists_Error("1809", "No contract data exists"),
        Contract_Rate_Out_Range_Error("1810", "Contract rate is out of range"),
        Super_Agent_Not_signed_Error("1811", "Super Agent Not signed"),
        Contract_Data_Exists_Error("1812", "Contract data exists"),
        Master_Agent_Not_signed_Error("1813", "Master Agent Not signed"),
        Not_Sufficient_Funds("1814", "Not sufficient funds"),
        Agent_Level_Error("1815", "The Agent Level Error"),
        Agent_Current_Transferred_Cannot_Be_The_Same("1816", "The current agent and the transferred agent cannot be the same!"),
        Agent_Transfer_Not_Exists("1817", "The transfer agent is not exists！"),
        Agent_Current_Not_Exists("1818", "The current agent is not exists！"),
        Agent_Player_Relationship_Not_Exists("1819", "The current agent and player relationship does not exist！"),
        Agent_Add_Available_Plyaer_Count_Ilegal("1820", "The add available player count is ilegal"),
        Agent_Available_Player_Range_Ilegal("1821", "The available player range Illegal！"),
        Agent_Rate_Integer("1822", "Rate must be an integer！"),
        Agent_Contract_Not_Completed("1823", "The contract is not completed"),
        Site_Not_Disable("1824", "The site is not disabled"),
        Agent_Transfer_Rebate_Arrears("1825", "代理欠款，无法使用佣金钱包转账"),
        Agent_Financial_Account_Error("1826", "您输入的账号错误，请重新输入"),
        Agent_Account_Locked("1827", "您输入的账号不合法，请联系客服"),
        Agent_Is_Not_Master("1828", "The is not master"),
        Agent_Manage_List_Error("1829", "代理管理列表查询异常"),
        Agent_Manage_Load_Error("1830", "代理管理详情查询异常"),
        Agent_GameRecord_List_Error("1831", "代理游戏记录列表查询异常"),
        Agent_GameRecord_Load_Error("1832", "代理游戏记录详情查询异常"),


        //-----------------体育相关定义[2000~3000]--------------------------,
        Sport_Events_Not_Exist("2001", "The sport events not exist"),
        Sport_Events_Data_Error("2002", "The sport Data error"),
        //--体育——>沙巴订单相关定义[2010-2049]---
        Sport_Saba_Order_Api_Error("2010", "The Saba Order Api error"),
        Sport_Saba_Order_Failed("2011", "执行失败"),
        Sport_Saba_Order_ErrorEventInterval("2012", "赛事区间错误"),
        Sport_Saba_Order_CustomerNotFound("2013", "找不到该会员资料"),
        Sport_Saba_Order_VendorTransIdDuplicated("2014", "厂商注单号码重复"),
        Sport_Saba_Order_SqlException("2015", "SQL 执行错误"),
        Sport_Saba_Order_PointIsExpired("2016", "球头已不存在"),
        Sport_Saba_Order_MatchClosedOrInvalidMarketId("2017", "赛事 ID 错误或是赛事已关闭"),
        Sport_Saba_Order_OddsChanged("2018", "赔率变更"),
        Sport_Saba_Order_InvalidVendorId("2019", "厂商标识符错误"),
        Sport_Saba_Order_UnderMaintenance("2020", "系统维护中"),
        Sport_Saba_Order_StakeProblem("2021", "超过最大或最小投注限额下注金额非整数"),
        Sport_Saba_Order_OddsSuspend("2022", "赔率正在更新"),
        Sport_Saba_Order_ClientIPisInvalid("2023", "无效的客户IP"),
        Sport_Saba_Order_CreditProblem("2024", "余额不足"),
        Sport_Saba_Order_OverMaxPerMatch("2025", "超过单场投注限额"),
        Sport_Saba_Order_OddsError("2027", "赔率错误"),
        Sport_Saba_Order_InPlayChanged("2028", "电子竞技的赛事状态改变"),
        Sport_Saba_Order_UnderCanBetCount("2029", "未达串关最低场数限制"),
        Sport_Saba_Order_LuckySingleProblem("2030", "串关错误"),
        Sport_Saba_Order_DisabledBet("2031", "非正规投注账号"),
        Sport_Saba_Order_ScoreChanged("2032", "赛事比分改变"),
        Sport_Saba_Order_PointChanged("2033", "赛事球头改变"),
        Sport_Saba_Order_ClosePrice("2034", "盘口暂时关闭"),
        Sport_Saba_Order_MarketClosed("2035", "盘口关闭"),
        Sport_Saba_Order_SportTypeIsInvalid("2036", "体育项目 ID 错误"),
        Sport_Saba_Order_CustomerClosed("2037", "会员账号已关闭"),
        Sport_Saba_Order_ParlayNoComboAvailable("2039", "串的张数越多时,最大投注限额越来越小,最终小于最小投注限额,建议减少串关数量"),
        Sport_Saba_Order_ParlayExceedsMaxMarkets("2040", "超过最多可串关数量(最多仅支持串 20 场)"),

        Sport_Saba_Order_SingleNotSupport("2043", "单一钱包不支持较差赔率"),
        Sport_Saba_Order_DisabledParlayMatch("2046", "串关限制"),
        Sport_Saba_Order_NoValidParlayCombos("2047", "无可使用的串关组合"),
        Sport_Saba_Order_OverMaxPayoutPerMatch("2048", "超过单场最高派彩"),

        //--体育——>沙巴体育相关定义[2050-2099]---
        Sport_Saba_Sport_Api_Error("2050", "The Saba Order Api error"),
        Sport_Saba_Sport_Failed("2051", "执行失败"),
        Sport_Saba_Sport_ErrorEventInterval("2052", "赛事区间错误"),
        Sport_Saba_Sport_CustomerNotFound("2053", "找不到该会员资料"),
        Sport_Saba_Sport_SqlException("2055", "SQL 执行错误"),
        Sport_Saba_Sport_MatchClosed("2056", "赛事已关闭"),
        Sport_Saba_Sport_MatchClosedOrInvalidMarketId("2057", "赛事 ID 错误或是赛事已关闭"),
        Sport_Saba_Sport_InvalidVendorId("2059", "厂商标识符错误"),
        Sport_Saba_Sport_UnderMaintenance("2060", "系统维护中"),
        Sport_Saba_Sport_VersionKeyLimit("2062", "1 分鐘內傳入 3 次同樣的version_key"),
        Sport_Saba_Sport_ClientIpIllegal("2063", "厂商会员的 IP 不合法"),
        Sport_Saba_Order_Waiting("2091", "下注成功，等待三方确认！"),
        Sport_Saba_Order_Item_Not_Exist("2090", "The Saba Order Item Not Exist"),
        Sport_Saba_Order_Not_Exist("2092", "The Saba Order Not Exist"),
        Sport_Saba_Order_Bet_Fail("2093", "沙巴订单下注失败"),
        Sport_Saba_Order_Exist("2094", "The Saba Order Exist"),
        Sport_Saba_Outright_Not_Exist("2095", "The Saba Outright Data Not Exist"),
        Sport_Saba_Market_Not_Exist("2096", "The Saba Market Data Not Exist"),
        Sport_Saba_Event_Not_Exist("2097", "The Saba Event Data Not Exist"),
        Sport_Im_Api_Error("2099", "The IM Api error"),


        //-----------------优惠活动/红包雨/任务[3001~3300]--------------------------
        SiteTaskOrder_Status_Error("3001", "The status of the task order error"),
        SiteTaskList_Not_Exists("3002", "The  task list not exists"),
        SiteTask_Not_Exists("3003", "The  task  not exists"),
        SiteTask_More_Than_One("3004", "The  task  more than one"),
        SiteTaskGroup_Not_Exists("3005", "The  task  not exists"),
        SiteTaskOrder_Already_Exists("3006", "The  task record  already exists"),
        TaskGroup_Null("3007", "The TaskGroup is null"),
        Nothing_Update("3008", "Nothing to update"),
        SiteRedPacket_Bind_BankCard("3009", "请绑定银行卡"),
        SiteRedPacket_Bind_PhoneNum("3010", "请绑定手机号"),
        SiteRedPacket_Next_Day_GetRedPacket("3011", "明日才能领取红包"),
        SiteRedPacket_Total_Deposit_NotEnough("3012", "累计存款不足"),
        SiteRedPacket_Total_Aviable_Bet_NotEnough("3013", "累计有效投注不足"),
        SiteRedPacket_Single_Deposit_NotEnough("3014", "单笔存款不足"),
        SiteRedPacket_Single_Aviable_Bet_NotEnough("3015", "单笔有效投注不足"),
        SiteRedPacket_End("3016", "红包雨活动已结束"),
        SiteTaskGroup_Update_Error("3017", "更新站点任务组失败"),
        SiteTaskList_Save_Err("3018", "新增站点系列失败"),
        SiteTaskItem_Save_Err("3019", "新增站点条目失败"),
        SiteTaskSport_Save_Err("3020", "新增站点任务体育失败"),
        SiteRedpacket_Not_Receive("3024", "不符合红包领取条件"),
        SiteTaskItem_Start_CheckStatus_Err("3021", "启用站点任务组失败，条目尚未启用"),
        SiteTaskItem_Start_GetGroup_Err("3022", "启用站点任务组失败，查无此站点任务组"),
        SiteTaskItem_Disable_GetGroup_Err("3023", "停用站点任务组失败，查无此站点任务组"),
        SiteRedPacket_CarveAmount_NotExists("3025", "待瓜分红包金额不存在"),
        SiteRedPacket_CarveAmount_NoMore("3026", "红包总金额已经瓜分完毕"),
        SiteRedPacket_Not_Open("3027", "当前红包雨还未开启"),
        SiteRedPacket_Had_End("3028", "当前红包雨已经结束"),
        SiteRedPacket_GetTimes_IsOver("3029", "当前红包雨领取次数已经用完"),
        SiteTaskItem_Repeat_Start_Err("3030", "启用站点任务组失败，条目有其他组合使用中。"),
        SiteTaskItem_Start_GetGroup_Status_Err("3031", "启用站点任务组失败，此站点任务组状态异常"),
        SiteTaskGroup_Save_Err("3032", "下放站点任务失败，异常重复下放相同任务至站点。"),

        //-----------------虚拟币钱包 [3301~3400]--------------------------
        Ilegal_Device("3301", "The ilegal device"),
        SiteWallet_Not_Exists("3302", "The wallet not exists"),
        Site_Blockchain_Device_Not_Exist("3303", "The blockchain device not exists"),

        Disabled_Status_Cannot_Modified("3304", "Disabled status cannot be modified"),
        ;


        /**
         * 状态码
         */
        public String code;
        /**
         * 错误信息
         */
        public String msg;


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

        public static BaseExceptionEnum getEnums(String value) {
            for (BaseExceptionEnum exceptionEnum : BaseExceptionEnum.values()) {
                if (exceptionEnum.code.equalsIgnoreCase(value)) {
                    return exceptionEnum;
                }
            }
            return null;
        }

        @Override
        public String toString() {
            return "{\"code\":\"" + code + "\",\"msg\":\"" + msg + "\"}";
        }
    }

}



```