ZSError

public class ZSError : Error

Error sent from the SDK.

  • Corresponding error code from ZSErrorCode for the error.

    Declaration

    Swift

    public var code: ZSErrorCode
  • The integer representation of the code.

    Declaration

    Swift

    public var errorCode: Int
  • The detailed description of the error. This message will be present only in English and will not be localized.

    Declaration

    Swift

    public var errorDescription: String
  • This additional error info will be available for ZSErrorCode.purchaseAlreadyProcessed and ZSErrorCode.noValidPurchasesFound which contains the subscription id of the already processed subscription or expired subscription user has purchased.

    Declaration

    Swift

    public var errorInfo: [[String : Any]]?