OOOoyalaError.h
1 
10 @import Foundation;
11 
15 typedef NS_ENUM(NSInteger, OOOoyalaErrorCode) {
16  OOOoyalaErrorCodeAuthorizationFailed = 0,
17  OOOoyalaErrorCodeAuthorizationInvalid = 1,
18  OOOoyalaErrorCodeHeartbeatFailed = 2,
19  OOOoyalaErrorCodeContentTreeInvalid = 3,
20  OOOoyalaErrorCodeAuthorizationSignatureInvalid = 4,
21  OOOoyalaErrorCodeContentTreeNextFailed = 5,
22  OOOoyalaErrorCodePlaybackFailed = 6,
23  OOOoyalaErrorCodeAssetNotEncodedForIOS = 7,
24  OOOoyalaErrorCodeInternalIOS = 8,
25  OOOoyalaErrorCodeMetadataInvalid = 9,
26  OOOoyalaErrorCodeDeviceInvalidAuthToken = 10,
27  OOOoyalaErrorCodeDeviceLimitReached = 11,
28  OOOoyalaErrorCodeDeviceBindingFailed = 12,
29  OOOoyalaErrorCodeDeviceIdTooLong = 13,
30  OOOoyalaErrorCodeDeviceGenericDrmError = 14,
31  OOOoyalaErrorCodeDrmDownloadFailedError = 15,
32  OOOoyalaErrorCodeDrmPersonalizationFailedError = 16,
33  OOOoyalaErrorCodeDrmAcquireRightsFailedError = 17,
34  OOOoyalaErrorCodeDiscoveryInvalidParameter = 18,
35  OOOoyalaErrorCodeDiscoveryNetworkError = 19,
36  OOOoyalaErrorCodeDiscoveryFailedResponse = 20,
37  OOOoyalaErrorCodeNoAvailableStreams = 21,
38  OOOoyalaErrorCodePcodeMismatch = 22,
39  OOOoyalaErrorCodeDownloadFailed = 23,
40  OOOoyalaErrorCodeDeviceConcurrentStreams = 24,
41  OOOoyalaErrorCodeAdvertistingIdFailure = 25,
42  OOOoyalaErrorCodeDiscoveryGetFailure = 26,
43  OOOoyalaErrorCodeDiscoveryPostFailure = 27,
44  OOOoyalaErrorCodePlayerFormatMissmatch = 28,
45  OOOoyalaErrorCodeCreateVRPlayerFailed = 29,
46  OOOoyalaErrorCodeUnknownError = 30,
47  OOOoyalaErrorCodeGeoBlockingError = 31,
48  OOOoyalaErrorCodeEmbedCodeMetadataError = 32,
49  OOOoyalaErrorCodeAdContentError = 33,
50 };
51 
56 @interface OOOoyalaError : NSObject
57 
58 @property (readonly, nonatomic) OOOoyalaErrorCode code;
59 @property (readonly, nonatomic) NSString *message;
60 @property (readonly, nonatomic) NSError *error;
61 @property (readonly, nonatomic) NSDictionary *userInfo;
68 - (instancetype)initWithCode:(OOOoyalaErrorCode)code;
69 
75 - (instancetype)initWithNSError:(NSError *)error;
76 
83 - (instancetype)initWithNSError:(NSError *)error
84  code:(OOOoyalaErrorCode)code;
85 
92 - (instancetype)initWithCode:(OOOoyalaErrorCode)code description:(NSString *)description;
93 
101 - (instancetype)initWithCode:(OOOoyalaErrorCode)code
102  description:(NSString *)description
103  userInfo:(NSDictionary *)userInfo;
104 
111 + (OOOoyalaError *)errorWithCode:(OOOoyalaErrorCode)code
112  description:(NSString *)description;
113 
119 + (OOOoyalaError *)errorWithNSError:(NSError *)error;
120 
127 + (OOOoyalaError *)errorWithNSError:(NSError *)error
128  code:(OOOoyalaErrorCode)code;
129 
137 + (OOOoyalaError *)errorWithCode:(OOOoyalaErrorCode)code
138  description:(NSString *)description
139  userInfo:(NSDictionary *)userInfo;
140 
141 @end
NSString * message
The OOOoyalaError's description.
Definition: OOOoyalaError.h:59
NSDictionary * userInfo
An optional NSDictionary that has more info about the error.
Definition: OOOoyalaError.h:61
Represents an error in the Ooyala SDK.
Definition: OOOoyalaError.h:56
OOOoyalaErrorCode code
The OOOoyalaError's code.
Definition: OOOoyalaError.h:58
NSError * error
The underlying NSError if it exists.
Definition: OOOoyalaError.h:60