MASDKError
public enum MASDKError : Error
extension MASDKError: LocalizedError
Mini App SDK Error which is passed from the main MiniApp APIs.
-
The server returned an error.
Declaration
Swift
case serverError(code: Int, message: String)Parameters
codeHTTP status code from the server
messageerror message returned by the server
-
The URL was invalid the SDK tried to connect to the server. Probably you provided an invalid URL value to the Base URL setting.
Declaration
Swift
case invalidURLError -
The provided mini app ID was invalid. For example, the value cannot be an empty string.
Declaration
Swift
case invalidAppId -
The provided mini app version ID was invalid. For example, the value cannot be an empty string.
Declaration
Swift
case invalidVersionId -
The server provided an invalid response body.
Declaration
Swift
case invalidResponseData -
The mini app failed to download.
Declaration
Swift
case downloadingFailed -
There are no published versions for the provided mini app ID.
Declaration
Swift
case noPublishedVersion -
The provided mini app ID was not found on the server.
Declaration
Swift
case miniAppNotFound -
All required custom permissions is not allowed by the user
Declaration
Swift
case metaDataFailure -
The provided contact ID was invalid. For example, a contact with this ID could not be found in the contact list
Declaration
Swift
case invalidContactId -
Host app failed to implement required interface
Declaration
Swift
case failedToConformToProtocol -
ZIP archive signature has changed during download phase
Declaration
Swift
case invalidSignature -
Error code to let the Host app know that Mini app is modified or corrupted after downloading
Declaration
Swift
case miniAppCorrupted -
An unexpected error occurred.
Declaration
Swift
case unknownError(domain: String, code: Int, description: String)Parameters
domainThe domain from the original NSError.
messageThe code from the original NSError.
descriptionThe description from the original NSError
-
Undocumented
Declaration
Swift
case miniAppTooManyRequestsError -
Checks if the error is due to the Internet availability, returns true if yes
Declaration
Swift
public func isDeviceOfflineDownloadError() -> BoolReturn Value
Bool value - returns true if there is there error contains code from offlineErrorCodeList
-
Method to know if MASDKerror is because of exceeding QPS limit set on the platfom side
Declaration
Swift
public func isQPSLimitError() -> BoolReturn Value
Bool value - True if it exceeded the limit
-
Declaration
Swift
public var errorDescription: String? { get } -
Undocumented
Declaration
Swift
public var code: Int { get }
MASDKError Enumeration Reference