lpw
2 days ago 1e5242aa56dd1c52c537335ee56d7127d09b24de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#import <Foundation/Foundation.h>
 
/// Error domain for all SDK errors.
extern NSErrorDomain _Nonnull const UMPErrorDomain;
 
/// Error codes used when making requests to update consent info.
typedef NS_ERROR_ENUM(UMPErrorDomain, UMPRequestErrorCode){
    UMPRequestErrorCodeInternal = 1,      ///< Internal error.
    UMPRequestErrorCodeInvalidAppID = 2,  ///< The application's app ID is invalid.
    UMPRequestErrorCodeNetwork = 3,       ///< Network error communicating with Funding Choices.
    UMPRequestErrorCodeMisconfiguration =
        4,  ///< A misconfiguration exists in the Funding Choices UI.
} NS_SWIFT_NAME(RequestError);
 
/// Error codes used when loading and showing forms.
typedef NS_ERROR_ENUM(UMPErrorDomain, UMPFormErrorCode){
    UMPFormErrorCodeInternal = 5,     ///< Internal error.
    UMPFormErrorCodeAlreadyUsed = 6,  ///< Form was already used.
    UMPFormErrorCodeUnavailable = 7,  ///< Form is unavailable.
    UMPFormErrorCodeTimeout = 8,      ///< Loading a form timed out.
    UMPFormErrorCodeInvalidViewController =
        9,  ///< Form cannot be presented from the provided view controller.
} NS_SWIFT_NAME(FormError);