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