class Errors { Errors._(); // APP 本地错误代码 static const String ePlatform = '-100'; static const String eApiBase = '-101'; static const String eNoAvailableApi = '-102'; static const String eNoConnectivity = '-103'; static const String eFingerprint = '-104'; static const String eReadLog = '-201'; static const String eUploadLog = '-202'; // 通用错误代码 static const String eForbidden = '-1'; // 用户被禁用 static const int eUserDisabled = 424; // 设备被禁用 static const int eDeviceRestricted = 423; // 当前区域不可用 static const int eRegionNotAvailable = 403; // token实效 static const int eTokenExpired = 401; // 自定义错误码 static const int ERROR_NODE_TIMEOUT = 500; // 节点连接超时 static const int ERROR_NO_NODE = 501; // 没有节点 static const int ERROR_INIT = 1100; // vpn初始化失败 static const int ERROR_KILL = 1101; // 服务异常kill static const int ERROR_REVOKE = 1102; // 系统强杀 static const int ERROR_SERVICE_EMPTY = 1103; // 服务器节点返回空 static const int ERROR_ROUTER = 1104; // 调度失败 static const int ERROR_PERMISSION_DENIED = 1105; // 拒绝权限 static const int ERROR_REMAIN_TIME = 1106; // 没有可用时间 // Windows 错误代码 static const int ERROR_RPC_CALL_FAILED = 1107; // RPC 调用失败 static const int ERROR_RPC_RETURN_FALSE = 1108; // RPC 调用返回False }