MLErrorCode Constants Reference

Declared in MLConstants.h

MLErrorCode

MLErrorCode enum contains all custom error codes that are used as code for NSError for callbacks on all classes.

These codes are used when domain of NSError that you receive is set to MLErrorDomain.

Definition

typedef NS_ENUM(NSInteger, MLErrorCode ) {
   kMLErrorInternalServer = 1,
   kMLErrorConnectionFailed = 100,
   kMLErrorObjectNotFound = 101,
   kMLErrorInvalidQuery = 102,
   kMLErrorInvalidClassName = 103,
   kMLErrorMissingObjectId = 104,
   kMLErrorInvalidKeyName = 105,
   kMLErrorInvalidType = 106,
   kMLErrorInvalidJSON = 107,
   kMLErrorCommandUnavailable = 108,
   kMLErrorCommandNotInitialized = 109,
   kMLErrorInvalidUpdate = 110,
   kMLErrorIncorrectType = 111,
   kMLErrorInvalidChannelName = 112,
   kMLErrorBindToClassNotFound = 113,
   kMLErrorPushMisconfigured = 115,
   kMLErrorObjectTooLarge = 116,
   kMLErrorInvalidParameter = 117,
   kMLErrorInvalidObjectId = 118,
   kMLErrorOperationForbidden = 119,
   kMLErrorCacheMiss = 120,
   kMLErrorInvalidNestedKey = 121,
   kMLErrorInvalidFileName = 122,
   kMLErrorTimeout = 124,
   kMLErrorInvalidEmailAddress = 125,
   kMLErrorRoleNotChangeName = 136,
   kMLErrorDuplicateValue = 137,
   kMLErrorInvalidRoleName = 139,
   kMLErrorExceededQuota = 140,
   kMLScriptError = 141,
   kMLErrorRoleNotFound = 142,
   kMLErrorCloudCodeNotDeployed = 143,
   kMLErrorInvalidToken = 160,
   kMLErrorUsernameMissing = 200,
   kMLErrorUserPasswordMissing = 201,
   kMLErrorUsernameTaken = 202,
   kMLErrorUserEmailTaken = 203,
   kMLErrorUserEmailMissing = 204,
   kMLErrorUserWithEmailNotFound = 205,
   kMLErrorUserCannotBeAlteredWithoutSession = 206,
   kMLErrorUserCanOnlyBeCreatedThroughSignUp = 207,
   kMLErrorAccountAlreadyLinked = 208,
   kMLErrorPasswordMisMatch = 210,
   kMLErrorUserNotFound = 211,
   kMLErrorInvalidSmsCode = 221,
   kMLErrorLinkedIdMissing = 250,
   kMLErrorInvalidLinkedSession = 251,
   kMLErrorUnsupportedSevice = 252,
   kMLErrorInvalidAuthData = 253,
   kMLErrorInvalidCaptcha = 301,
   kMLErrorUnauthorized = 401,
   kMLErrorRateLimit = 503,
   kMLErrorPathTaken = 600,
   kMLErrorPathNotExist = 601,
   kMLErrorUnexpected = 602,
   kMLErrorNoPermission = 90000,
   kMLErrorSessionTokenInvalid = 90100,
   kMLErrorSessionTokenExpired = 90101,
   kMLErrorAppIdAndKeyNotMatch = 90102,
   kMLErrorAppIdAndSessionTokenNotMatch = 90103,
};

Constants

kMLErrorInternalServer

1: Internal server error. No information available.

Declared In MLConstants.h.

kMLErrorConnectionFailed

100: The connection to the MaxLeap servers failed.

Declared In MLConstants.h.

kMLErrorObjectNotFound

101: Object doesn’t exist, or has an incorrect password.

Declared In MLConstants.h.

kMLErrorInvalidQuery

102: You tried to find values matching a datatype that doesn’t support exact database matching, like an array or a dictionary.

Declared In MLConstants.h.

kMLErrorInvalidClassName

103: Missing or invalid classname. Classnames are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.

Declared In MLConstants.h.

kMLErrorMissingObjectId

104: Missing ObjectId, usually the objectId no introduction in the query time, or objectId is illegal. ObjectId string can only letters, numbers.

Declared In MLConstants.h.

kMLErrorInvalidKeyName

105: Key is reserved. objectId, createdAt, updatedAt.
Invalid key name. Keys are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.

Declared In MLConstants.h.

kMLErrorInvalidType

106: Invalid format. Date, Pointer, Relation….

Declared In MLConstants.h.

kMLErrorInvalidJSON

107: Malformed json object. A json dictionary is expected.

Declared In MLConstants.h.

kMLErrorCommandUnavailable

108: Tried to access a feature only available internally.

Declared In MLConstants.h.

kMLErrorCommandNotInitialized

109: [MaxLeap setApplicationId:clientKey:] must be called before using the library.

Declared In MLConstants.h.

kMLErrorInvalidUpdate

110: Update syntax error.

Declared In MLConstants.h.

kMLErrorIncorrectType

111: Field set to incorrect type.

Declared In MLConstants.h.

kMLErrorInvalidChannelName

112: Invalid channel name. A channel name is either an empty string (the broadcast channel) or contains only a-zA-Z0-9_ characters and starts with a letter.

Declared In MLConstants.h.

kMLErrorBindToClassNotFound

113: BindTo class not found.

Declared In MLConstants.h.

kMLErrorPushMisconfigured

115: Push is misconfigured. See details to find out how.

Declared In MLConstants.h.

kMLErrorObjectTooLarge

116: The object is too large.

Declared In MLConstants.h.

kMLErrorInvalidParameter

117: The parameters is invalid.

Declared In MLConstants.h.

kMLErrorInvalidObjectId

118: ObjectId is invalid.

Declared In MLConstants.h.

kMLErrorOperationForbidden

119: That operation isn’t allowed for clients.

Declared In MLConstants.h.

kMLErrorCacheMiss

120: The results were not found in the cache.

Declared In MLConstants.h.

kMLErrorInvalidNestedKey

121: An invalid key was used in a nested JSONObject. Keys in NSDictionary values may not include ‘$’ or ‘.’.

Declared In MLConstants.h.

kMLErrorInvalidFileName

122: Invalid file name. A file name contains only a-zA-Z0-9_. characters and is between 1 and 36 characters.

Declared In MLConstants.h.

kMLErrorTimeout

124: The request timed out on the server. Typically this indicates the request is too expensive.

Declared In MLConstants.h.

kMLErrorInvalidEmailAddress

125: The email address was invalid.

Declared In MLConstants.h.

kMLErrorRoleNotChangeName

136: Role name cannot be changed.

Declared In MLConstants.h.

kMLErrorDuplicateValue

137: A unique field was given a value that is already taken.

Declared In MLConstants.h.

kMLErrorInvalidRoleName

139: Role’s name is invalid.

Declared In MLConstants.h.

kMLErrorExceededQuota

140: Exceeded an application quota. Upgrade to resolve.

Declared In MLConstants.h.

kMLScriptError

141: Cloud Code script had an error.

Declared In MLConstants.h.

kMLErrorRoleNotFound

142: Role is not found.

Declared In MLConstants.h.

kMLErrorCloudCodeNotDeployed

143: The cloud code is not deployed.

Declared In MLConstants.h.

kMLErrorInvalidToken

160: Session token is invalid.

Declared In MLConstants.h.

kMLErrorUsernameMissing

200: Username is missing or empty

Declared In MLConstants.h.

kMLErrorUserPasswordMissing

201: Password is missing or empty

Declared In MLConstants.h.

kMLErrorUsernameTaken

202: Username has already been taken

Declared In MLConstants.h.

kMLErrorUserEmailTaken

203: Email has already been taken

Declared In MLConstants.h.

kMLErrorUserEmailMissing

204: The email is missing, and must be specified

Declared In MLConstants.h.

kMLErrorUserWithEmailNotFound

205: A user with the specified email was not found

Declared In MLConstants.h.

kMLErrorUserCannotBeAlteredWithoutSession

206: The user cannot be altered by a client without the session.

Declared In MLConstants.h.

kMLErrorUserCanOnlyBeCreatedThroughSignUp

207: Users can only be created through sign up

Declared In MLConstants.h.

kMLErrorAccountAlreadyLinked

208: An existing account already linked to another user.

Declared In MLConstants.h.

kMLErrorPasswordMisMatch

210: Password does not match.

Declared In MLConstants.h.

kMLErrorUserNotFound

211: User not found.

Declared In MLConstants.h.

kMLErrorInvalidSmsCode

221: Invalid sms code.

Declared In MLConstants.h.

kMLErrorLinkedIdMissing

250: User cannot be linked to an account because that account’s ID is not found.

Declared In MLConstants.h.

kMLErrorInvalidLinkedSession

251: A user with a linked (e.g. Facebook) account has an invalid session.

Declared In MLConstants.h.

kMLErrorUnsupportedSevice

252: No supported account linking service found.

Declared In MLConstants.h.

kMLErrorInvalidAuthData

253: The authData must be Hash type, not null.

Declared In MLConstants.h.

kMLErrorInvalidCaptcha

301: CAPTCHA input is invalid.

Declared In MLConstants.h.

kMLErrorUnauthorized

401: Unauthorized access, no App ID, or App ID and App key verification failed, or has no permission.

Declared In MLConstants.h.

kMLErrorRateLimit

503: Rate limit exceeded.

Declared In MLConstants.h.

kMLErrorPathTaken

600: The path has already been taken.

Declared In MLConstants.h.

kMLErrorPathNotExist

601: The path does not exists.

Declared In MLConstants.h.

kMLErrorUnexpected

602: Unexpected error. No infomation available.

Declared In MLConstants.h.

kMLErrorNoPermission

90000: No Permission

Declared In MLConstants.h.

kMLErrorSessionTokenInvalid

90000: Session token invalid

Declared In MLConstants.h.

kMLErrorSessionTokenExpired

90000: Session token expired

Declared In MLConstants.h.

kMLErrorAppIdAndKeyNotMatch

90000: AppId and key does not match

Declared In MLConstants.h.

kMLErrorAppIdAndSessionTokenNotMatch

90000: AppId and session token does not match

Declared In MLConstants.h.

Declared In

MLConstants.h