Update error code

hrxiang 2 years ago
parent b1fa710117
commit 0c7124a2a5
  1. 177
      lib/src/enum/sdk_error_code.dart

@ -1,17 +1,172 @@
/// // ///
class MessageFailedCode { // class MessageFailedCode {
/// // ///
static const int blockedByFriend = 1302; // static const int blockedByFriend = 1302;
//
// ///
// static const int deletedByFriend = 1303;
//
// /// /
// static const int notInGroup = 1204;
// }
//
// ///
// class AddFriendFailedCode {
// ///
// static const int refuseToAddFriends = 10013;
// }
/// class SDKErrorCode {
static const int deletedByFriend = 601; ///
static const int networkRequestError = 10000;
/// / ///
static const int notInGroup = 1205; static const int networkWaitTimeoutError = 10001;
}
///
static const int parameterError = 10002;
/// 退
static const int contextTimeoutError = 10003;
///
static const int resourceNotLoaded = 10004;
/// errmsg
static const int unknownError = 10005;
/// sdk errmsg
static const int sdkInternalError = 10006;
///
class AddFriendFailedCode {
/// ///
static const int refuseToAddFriends = 10013; static const int refuseToAddFriends = 10013;
///
static const int userNotExistOrNotRegistered = 10100;
/// 退
static const int userHasLoggedOut = 10101;
/// getloginstatus
static const int repeatLogin = 10102;
///
static const int uploadFileNotExist = 10200;
///
static const int messageDecompressionFailed = 10201;
///
static const int messageDecodingFailed = 10202;
///
static const int unsupportedLongConnection = 10203;
///
static const int messageRepeated = 10204;
///
static const int messageContentTypeNotSupported = 10205;
///
static const int unsupportedSessionOperation = 10301;
/// ID
static const int groupIDNotExist = 10400;
///
static const int wrongGroupType = 10401;
///
static const int serverInternalError = 500;
/// body header
static const int serverParameterError = 1001;
/// header token
static const int insufficientPermissions = 1002;
///
static const int duplicateDatabasePrimaryKey = 1003;
///
static const int databaseRecordNotFound = 1004;
/// ID
static const int userIDNotExist = 1101;
///
static const int userAlreadyRegistered = 1102;
///
static const int groupNotExis = 1201;
///
static const int groupAlreadyExists = 1202;
///
static const int userIsNotInGroup = 1203;
///
static const int groupDisbanded = 1204;
///
static const int groupApplicationHasBeenProcessed = 1206;
///
static const int notAddMyselfAsAFriend = 1301;
///
static const int hasBeenBlocked = 1302;
///
static const int notFriend = 1303;
///
static const int alreadyAFriendRelationship = 1304;
///
static const int messageReadFunctionIsTurnedOff = 1401;
///
static const int youHaveBeenBanned = 1402;
///
static const int groupHasBeenBanned = 1403;
///
static const int messageHasBeenRetracted = 1404;
///
static const int licenseExpired = 1405;
/// token
static const int tokenHasExpired = 1501;
/// token
static const int tokenInvalid = 1502;
/// token
static const int tokenFormatError = 1503;
/// token
static const int tokenHasNotYetTakenEffect = 1504;
/// token
static const int unknownTokenError = 1505;
/// token
static const int thekickedOutTokenIsInvalid = 1506;
/// token
static const int tokenNotExist = 1507;
///
static const int connectionsExceedsMaximumLimit = 1601;
///
static const int handshakeParameterError = 1602;
///
static const int fileUploadExpired = 1701;
} }

Loading…
Cancel
Save