Error
public enum Error : Swift.Error, LocalizedError, CustomStringConvertible, CustomDebugStringConvertible
Enum that contains all error types in the library.
-
Undocumented
See moreDeclaration
Swift
public enum Keys : String
-
Error where Object ID is required.
Declaration
Swift
case objectIdMissing
-
Error when a method is not allowed, usually when you are using a Data Link Connector (DLC).
Declaration
Swift
case methodNotAllowed(httpResponse: HTTPURLResponse?, data: Data?, debug: String, description: String)
-
Error when a Data Link endpoint is not found, usually when you are using a Data Link Connector (DLC).
Declaration
Swift
case dataLinkEntityNotFound(httpResponse: HTTPURLResponse?, data: Data?, debug: String, description: String)
-
Error when there’s a missing configuration in the backend.
Declaration
Swift
case missingConfiguration(httpResponse: HTTPURLResponse?, data: Data?, debug: String, description: String)
-
Error when a request parameter is missing
Declaration
Swift
case missingRequestParameter(httpResponse: HTTPURLResponse?, data: Data?, debug: String, description: String)
-
Error when the type is unknow.
Declaration
Swift
case unknownError(httpResponse: HTTPURLResponse?, data: Data?, error: String)
-
Error when the type is unknow.
Declaration
Swift
case unknownJsonError(httpResponse: HTTPURLResponse?, data: Data?, json: [String : Any])
-
Error when a Invalid Response coming from the backend.
Declaration
Swift
case invalidResponse(httpResponse: HTTPURLResponse?, data: Data?)
-
Error when a Unauthorized Response coming from the backend.
Declaration
Swift
case unauthorized(httpResponse: HTTPURLResponse?, data: Data?, error: String, debug: String, description: String)
-
Error when calls a method that requires an active user.
Declaration
Swift
case noActiveUser
-
Error when a request was cancelled.
Declaration
Swift
case requestCancelled
-
Error when a request reached a timeout.
Declaration
Swift
case requestTimeout
-
Error when calls a method not available for a specific data store type.
Declaration
Swift
case invalidDataStoreType
-
Invalid operation
Declaration
Swift
case invalidOperation(description: String)
-
Error when a
User
doen’t have an email or username.Declaration
Swift
case userWithoutEmailOrUsername
-
Error when the
appKey
andappSecret
does not match with any Kinvey environment.Declaration
Swift
case appNotFound(description: String)
-
Error when any operation is called but the client was not initiliazed yet.
Declaration
Swift
case clientNotInitialized
-
Error forbidden
Declaration
Swift
case forbidden(description: String)
-
Error when the number of results exceeded the limit
Declaration
Swift
case resultSetSizeExceeded(debug: String, description: String)
-
Error when an entity was not found using the entity id provided
Declaration
Swift
case entityNotFound(debug: String, description: String)
-
Error when the value prodived for a parameter is out of range
Declaration
Swift
case parameterValueOutOfRange(debug: String, description: String)
-
Undocumented
Declaration
Swift
case invalidCredentials(httpResponse: HTTPURLResponse?, data: Data?, debug: String, description: String)
-
Undocumented
Declaration
Swift
case insufficientCredentials(httpResponse: HTTPURLResponse?, data: Data?, debug: String, description: String)
-
Undocumented
Declaration
Swift
case badRequest(httpResponse: HTTPURLResponse?, data: Data?, description: String)
-
Error handling OAuth errors in redirect uri responses
Declaration
Swift
case micAuth(error: String, description: String)
-
Error when a BL (Business Logic) Runtime Error occurs
Declaration
Swift
case blRuntime(debug: String, description: String, stack: String)
-
Error when a feature is not available
Declaration
Swift
case featureUnavailable(debug: String, description: String)
-
Undocumented
Declaration
Swift
case kinveyInternalErrorRetry(debug: String, description: String)
-
Error localized description.
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public var errorDescription: String? { get }
-
Declaration
Swift
public var failureReason: String? { get }
-
Declaration
Swift
public var debugDescription: String { get }
-
Response object contains status code, headers, etc.
Declaration
Swift
public var httpResponse: HTTPURLResponse? { get }
-
Response Header
X-Kinvey-Request-Id
Declaration
Swift
public var requestId: String? { get }
-
Response Data Body object.
Declaration
Swift
public var responseDataBody: Data? { get }
-
Response Body as a String value.
Declaration
Swift
public var responseStringBody: String? { get }