IMError.h
1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// IMError.h
// InMobi Monetization SDK
//
// Copyright (c) 2013 InMobi. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* Constant Error Domain for all the InMobi specific errors.
*/
extern NSString *const kInMobiErrorDomain;
/**
* NSError codes for InMobi error domain
*/
typedef enum {
// The ad request is invalid, refer to localizedDescription for more info.
kIMErrorInvalidRequest = 0,
// No ads were returned from the Ad Network
kIMErrorNoFill,
// InMobi encountered an Internal error
kIMErrorInternal,
// Ad Format Not Supported
kIMErrorAdFormatNotSupported,
// Ad request/rendering timed out.
kIMErrorTimeout,
// Ad request was cancelled.
kIMErrorRequestCancelled,
// Do ad monetization.
kIMErrorDoMonetization,
// Do nothing
kIMErrorDoNothing,
} IMErrorCode;
/**
* This class represents the error generated due to invalid request parameters
* or when the request fails to load.
*/
@interface IMError : NSError
@end