ALCMPError.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // ALCMPError.h
  3. // AppLovinSDK
  4. //
  5. // Created by Thomas So on 7/26/23.
  6. //
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. typedef NS_ENUM(NSInteger, ALCMPErrorCode)
  10. {
  11. /**
  12. * Indicates that an unspecified error has occurred.
  13. */
  14. ALCMPErrorCodeUnspecified = -1,
  15. /**
  16. * Indicates that the CMP has not been integrated correctly.
  17. */
  18. ALCMPErrorCodeIntegrationError = 1,
  19. /**
  20. * Indicates that the CMP form is unavailable.
  21. */
  22. ALCMPErrorCodeFormUnavailable = 2,
  23. /**
  24. * Indicates that the CMP form is not required.
  25. */
  26. ALCMPErrorCodeFormNotRequired = 3,
  27. };
  28. @interface ALCMPError : NSObject
  29. /**
  30. * The error code for this error.
  31. */
  32. @property (nonatomic, assign, readonly) ALCMPErrorCode code;
  33. /**
  34. * The error message for this error.
  35. */
  36. @property (nonatomic, copy, readonly) NSString *message;
  37. /**
  38. * The error code returned by the CMP.
  39. */
  40. @property (nonatomic, assign, readonly) NSInteger cmpCode;
  41. /**
  42. * The error message returned by the CMP.
  43. */
  44. @property (nonatomic, copy, readonly) NSString *cmpMessage;
  45. - (instancetype)init NS_UNAVAILABLE;
  46. - (instancetype)new NS_UNAVAILABLE;
  47. @end
  48. NS_ASSUME_NONNULL_END