MesosferErrorCode Constants Reference
Declared in | MFConstant.h |
---|
MesosferErrorCode
MesosferErrorCode
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 MesosferErrorDomain
.
Definition
typedef NS_ENUM(NSInteger, MesosferErrorCode ) {
kErrorInternalServer = 1,
kErrorInvalidAppIdAndClientKey = 2,
kErrorConnectionFailed = 100,
kErrorObjectNotFound = 101,
kErrorInvalidQuery = 102,
kErrorInvalidBucketName = 103,
kErrorMissingObjectId = 104,
kErrorInvalidKeyName = 105,
kErrorInvalidPointer = 106,
kErrorInvalidJSON = 107,
kErrorCommandUnavailable = 108,
kErrorIncorrectType = 111,
kErrorInvalidChannelName = 112,
kErrorInvalidDeviceToken = 114,
kErrorPushMisconfigured = 115,
kErrorOperationForbidden = 119,
kErrorCacheMiss = 120,
kErrorInvalidNestedKey = 121,
kErrorInvalidFileName = 122,
kErrorInvalidACL = 123,
kErrorTimeout = 124,
kErrorInvalidEmailAddress = 125,
kErrorDuplicateValue = 137,
kErrorInvalidRoleName = 139,
kErrorInvalidServerResponse = 148,
kErrorRequestLimitExceeded = 155,
kErrorInvalidEventName = 160,
kErrorUsernameMissing = 200,
kErrorUserPasswordMissing = 201,
kErrorUsernameTaken = 202,
kErrorUserEmailTaken = 203,
kErrorUserEmailMissing = 204,
kErrorUserWithEmailNotFound = 205,
kErrorUserCannotBeAlteredWithoutSession = 206,
kErrorUserCanOnlyBeCreatedThroughSignUp = 207,
kErrorInvalidSessionToken = 209,
kErrorUserIdMismatch = 209,
};
Constants
kErrorInternalServer
-
Internal server error. No information available.
Declared In
MFConstant.h
. kErrorInvalidAppIdAndClientKey
-
Application id or client key is invalid.
Declared In
MFConstant.h
. kErrorConnectionFailed
-
The connection to the Mesosfer servers failed.
Declared In
MFConstant.h
. kErrorObjectNotFound
-
Object doesn’t exist, or has an incorrect password.
Declared In
MFConstant.h
. kErrorInvalidQuery
-
You tried to find values matching a datatype that doesn’t support exact database matching, like an array or a dictionary.
Declared In
MFConstant.h
. kErrorInvalidBucketName
-
Missing or invalid bucket name. Bucket names are case-sensitive. They must start with a letter, and
a-zA-Z0-9
are the only valid characters.Declared In
MFConstant.h
. kErrorMissingObjectId
-
Missing object id.
Declared In
MFConstant.h
. kErrorInvalidKeyName
-
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
MFConstant.h
. kErrorInvalidPointer
-
Malformed pointer. Pointers must be arrays of a classname and an object id.
Declared In
MFConstant.h
. kErrorInvalidJSON
-
Malformed json object. A json dictionary is expected.
Declared In
MFConstant.h
. kErrorCommandUnavailable
-
Tried to access a feature only available internally.
Declared In
MFConstant.h
. kErrorIncorrectType
-
Field set to incorrect type.
Declared In
MFConstant.h
. kErrorInvalidChannelName
-
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
MFConstant.h
. kErrorInvalidDeviceToken
-
Invalid device token.
Declared In
MFConstant.h
. kErrorPushMisconfigured
-
Push is misconfigured. See details to find out how.
Declared In
MFConstant.h
. kErrorOperationForbidden
-
That operation isn’t allowed for clients.
Declared In
MFConstant.h
. kErrorCacheMiss
-
The results were not found in the cache.
Declared In
MFConstant.h
. kErrorInvalidNestedKey
-
Keys in
NSDictionary
values may not include$
or.
.Declared In
MFConstant.h
. kErrorInvalidFileName
-
Invalid file name. A file name can contain only
a-zA-Z0-9_.
characters and should be between 1 and 36 characters.Declared In
MFConstant.h
. kErrorInvalidACL
-
Invalid ACL. An ACL with an invalid format was saved. This should not happen if you use
ACL
.Declared In
MFConstant.h
. kErrorTimeout
-
The request timed out on the server. Typically this indicates the request is too expensive.
Declared In
MFConstant.h
. kErrorInvalidEmailAddress
-
The email address was invalid.
Declared In
MFConstant.h
. kErrorDuplicateValue
-
A unique field was given a value that is already taken.
Declared In
MFConstant.h
. kErrorInvalidRoleName
-
Role’s name is invalid.
Declared In
MFConstant.h
. kErrorInvalidServerResponse
-
The Apple server response is not valid.
Declared In
MFConstant.h
. kErrorRequestLimitExceeded
-
Application has exceeded its request limit.
Declared In
MFConstant.h
. kErrorInvalidEventName
-
Invalid event name.
Declared In
MFConstant.h
. kErrorUsernameMissing
-
Username is missing or empty.
Declared In
MFConstant.h
. kErrorUserPasswordMissing
-
Password is missing or empty.
Declared In
MFConstant.h
. kErrorUsernameTaken
-
Username has already been taken.
Declared In
MFConstant.h
. kErrorUserEmailTaken
-
Email has already been taken.
Declared In
MFConstant.h
. kErrorUserEmailMissing
-
The email is missing, and must be specified.
Declared In
MFConstant.h
. kErrorUserWithEmailNotFound
-
A user with the specified email was not found.
Declared In
MFConstant.h
. kErrorUserCannotBeAlteredWithoutSession
-
The user cannot be altered by a client without the session.
Declared In
MFConstant.h
. kErrorUserCanOnlyBeCreatedThroughSignUp
-
Users can only be created through sign up.
Declared In
MFConstant.h
. kErrorInvalidSessionToken
-
Error code indicating that the current session token is invalid.
Declared In
MFConstant.h
. kErrorUserIdMismatch
-
Error code indicating that the current session token is invalid.
Declared In
MFConstant.h
.
Declared In
MFConstant.h