Code
@objc(MoEngageRequestFailureReasonCode)
public enum Code : Int
Shared SDK-wide failure codes that any module can emit.
Module-specific codes live on the relevant subclass’s nested ModuleCode enum.
-
SDK was not initialized when the API was called.
Declaration
Swift
case sdkNotInitialized -
One or more parameters failed local validation.
Declaration
Swift
case invalidParameters -
Network failure (no connectivity, timeout, etc.).
Declaration
Swift
case networkError -
Server responded with an error.
Declaration
Swift
case serverError -
Authentication credentials were rejected.
Declaration
Swift
case authenticationFailed -
Server response could not be parsed.
Declaration
Swift
case parseError -
An unexpected internal error occurred.
Declaration
Swift
case unknownError -
The feature is disabled by SDK configuration or remote config.
Declaration
Swift
case featureDisabled -
A platform permission required by the feature is missing.
Declaration
Swift
case requiredPermissionMissing -
The task was cancelled before completion (via
task.cancel()or by cancellation of the enclosing SwiftTask).Declaration
Swift
case cancelled