3 #import <GoogleCast/GCKDefines.h> 5 #import <Foundation/Foundation.h> 11 GCK_ASSUME_NONNULL_BEGIN
17 typedef NS_ENUM(NSInteger, GCKErrorCode) {
21 GCKErrorCodeNoError = 0,
26 GCKErrorCodeNetworkError = 1,
31 GCKErrorCodeTimeout = 2,
36 GCKErrorCodeDeviceAuthenticationFailure = 3,
41 GCKErrorCodeInvalidRequest = 4,
47 GCKErrorCodeCancelled = 5,
52 GCKErrorCodeReplaced = 6,
57 GCKErrorCodeNotAllowed = 7,
63 GCKErrorCodeDuplicateRequest = 8,
68 GCKErrorCodeInvalidState = 9,
73 GCKErrorCodeSendBufferFull = 10,
79 GCKErrorCodeMessageTooBig = 11,
85 GCKErrorCodeChannelNotConnected = 12,
90 GCKErrorCodeDeviceAuthorizationFailure = 13,
96 GCKErrorCodeDeviceNotConnected = 14,
102 GCKErrorCodeProtocolVersionMismatch = 15,
107 GCKErrorCodeMaxUsersConnected = 16,
112 GCKErrorCodeNetworkNotReachable = 17,
117 GCKErrorCodeProtocolError = 18,
122 GCKErrorCodeAlreadyInitialized = 19,
127 GCKErrorCodeApplicationNotFound = 20,
132 GCKErrorCodeApplicationNotRunning = 21,
137 GCKErrorCodeInvalidApplicationSessionID = 22,
144 GCKErrorCodeSecureTransportError = 23,
149 GCKErrorCodeSocketAlreadyConnected = 24,
155 GCKErrorCodeSocketInvalidAddress = 25,
160 GCKErrorCodeSocketInvalidParameter = 26,
165 GCKErrorCodeMediaLoadFailed = 30,
170 GCKErrorCodeInvalidMediaPlayerState = 31,
175 GCKErrorCodeNoMediaSession = 32,
180 GCKErrorCodeAuthenticationErrorReceived = 40,
186 GCKErrorCodeMalformedClientCertificate = 41,
192 GCKErrorCodeNotX509Certificate = 42,
198 GCKErrorCodeDeviceCertificateNotTrusted = 43,
204 GCKErrorCodeSSLCertificateNotTrusted = 44,
210 GCKErrorCodeMalformedAuthenticationResponse = 45,
216 GCKErrorCodeDeviceCapabilityNotSupported = 46,
221 GCKErrorCodeCRLInvalid = 47,
227 GCKErrorCodeCRLCheckFailed = 48,
232 GCKErrorCodeBroadcastMessageEncryptionFailed = 50,
237 GCKErrorCodeBroadcastKeyExchangeInvalidResponse = 51,
242 GCKErrorCodeBroadcastKeyExchangeInvalidInput = 52,
247 GCKErrorCodeBroadcastKeyExchangeEmptyResponse = 53,
252 GCKErrorCodeBroadcastKeyExchangeRequestTimeout = 54,
257 GCKErrorCodeBroadcastKeyExchangeFailedToFindDevice = 55,
262 GCKErrorCodeBroadcastKeyExchangeFailedToConnect = 56,
267 GCKErrorCodeBroadcastMessageDropped = 57,
272 GCKErrorCodeBroadcastSocketError = 58,
277 GCKErrorCodeBroadcastFailedToGenerateEncryptionKey = 59,
282 GCKErrorCodeGuestModeListenFailed = 60,
288 GCKErrorCodeRemoteDisplayError = 80,
293 GCKErrorCodeRemoteDisplayDeviceNotSupported = 81,
299 GCKErrorCodeRemoteDisplayFeatureNotSupported = 82,
305 GCKErrorCodeRemoteDisplayConfigurationRejectedByReceiver = 83,
311 GCKErrorCodeRemoteDisplayOpenGLError = 84,
317 GCKErrorCodeRemoteDisplayMetalError = 85,
323 GCKErrorCodeRemoteDisplayAudioConversionError = 86,
328 GCKErrorCodeAppDidEnterBackground = 91,
333 GCKErrorCodeDisconnected = 92,
339 GCKErrorCodeUnsupportedFeature = 93,
344 GCKErrorCodeUnknown = 99,
350 GCK_EXTERN NSString *
const kGCKErrorCustomDataKey;
355 GCK_EXTERN NSString *
const kGCKErrorExtraInfoKey;
360 GCK_EXTERN NSString *
const kGCKErrorDomain;
369 + (
GCKError *)errorWithCode:(GCKErrorCode)code;
372 + (
GCKError *)errorWithCode:(GCKErrorCode)code customData:(
id GCK_NULLABLE_TYPE)customData;
375 + (NSString *)enumDescriptionForCode:(GCKErrorCode)code;
379 GCK_ASSUME_NONNULL_END
A subclass of NSError for framework errors.
Definition: GCKError.h:366