GCKError.h File

GCKError.h File Reference

Framework errors. More...

Classes

class  GCKError
 A subclass of NSError for framework errors. More...
 

Enumerations

enum  GCKErrorCode {
  GCKErrorCodeNoError = 0, GCKErrorCodeNetworkError = 1, GCKErrorCodeTimeout = 2, GCKErrorCodeDeviceAuthenticationFailure = 3,
  GCKErrorCodeInvalidRequest = 4, GCKErrorCodeCancelled = 5, GCKErrorCodeReplaced = 6, GCKErrorCodeNotAllowed = 7,
  GCKErrorCodeDuplicateRequest = 8, GCKErrorCodeInvalidState = 9, GCKErrorCodeSendBufferFull = 10, GCKErrorCodeMessageTooBig = 11,
  GCKErrorCodeChannelNotConnected = 12, GCKErrorCodeDeviceAuthorizationFailure = 13, GCKErrorCodeDeviceNotConnected = 14, GCKErrorCodeProtocolVersionMismatch = 15,
  GCKErrorCodeMaxUsersConnected = 16, GCKErrorCodeNetworkNotReachable = 17, GCKErrorCodeProtocolError = 18, GCKErrorCodeAlreadyInitialized = 19,
  GCKErrorCodeApplicationNotFound = 20, GCKErrorCodeApplicationNotRunning = 21, GCKErrorCodeInvalidApplicationSessionID = 22, GCKErrorCodeMediaLoadFailed = 30,
  GCKErrorCodeInvalidMediaPlayerState = 31, GCKErrorCodeNoMediaSession = 32, GCKErrorCodeAuthenticationErrorReceived = 40, GCKErrorCodeMalformedClientCertificate = 41,
  GCKErrorCodeNotX509Certificate = 42, GCKErrorCodeDeviceCertificateNotTrusted = 43, GCKErrorCodeSSLCertificateNotTrusted = 44, GCKErrorCodeMalformedAuthenticationResponse = 45,
  GCKErrorCodeDeviceCapabilityNotSupported = 46, GCKErrorCodeCRLInvalid = 47, GCKErrorCodeCRLCheckFailed = 48, GCKErrorCodeBroadcastMessageEncryptionFailed = 50,
  GCKErrorCodeBroadcastKeyExchangeInvalidResponse = 51, GCKErrorCodeBroadcastKeyExchangeInvalidInput = 52, GCKErrorCodeBroadcastKeyExchangeEmptyResponse = 53, GCKErrorCodeBroadcastKeyExchangeRequestTimeout = 54,
  GCKErrorCodeBroadcastKeyExchangeFailedToFindDevice = 55, GCKErrorCodeBroadcastKeyExchangeFailedToConnect = 56, GCKErrorCodeBroadcastMessageDropped = 57, GCKErrorCodeBroadcastSocketError = 58,
  GCKErrorCodeBroadcastFailedToGenerateEncryptionKey = 59, GCKErrorCodeRemoteDisplayError = 80, GCKErrorCodeRemoteDisplayDeviceNotSupported = 81, GCKErrorCodeRemoteDisplayFeatureNotSupported = 82,
  GCKErrorCodeRemoteDisplayConfigurationRejectedByReceiver = 83, GCKErrorCodeRemoteDisplayOpenGLError = 84, GCKErrorCodeRemoteDisplayMetalError = 85, GCKErrorCodeRemoteDisplayAudioConversionError = 86,
  GCKErrorCodeAppDidEnterBackground = 91, GCKErrorCodeDisconnected = 92, GCKErrorCodeUnsupportedFeature = 93, GCKErrorCodeUnknown = 99
}
 Framework error codes. More...
 

Variables

NSString *const kGCKErrorCustomDataKey
 The key for the customData JSON object associated with the error in the userInfo dictionary. More...
 
NSString *const kGCKErrorExtraInfoKey
 The key for extra error information, such as an API-specific error description. More...
 
NSString *const kGCKErrorDomain
 The error domain for GCKErrorCode. More...
 

Detailed Description

Framework errors.

Enumeration Type Documentation

Framework error codes.

Enumerator
GCKErrorCodeNoError 

Error Code indicating no error.

GCKErrorCodeNetworkError 

Error code indicating a network I/O error.

GCKErrorCodeTimeout 

Error code indicating that an operation has timed out.

GCKErrorCodeDeviceAuthenticationFailure 

Error code indicating an authentication error.

GCKErrorCodeInvalidRequest 

Error code indicating that an invalid request was made.

GCKErrorCodeCancelled 

Error code indicating that an in-progress request has been cancelled, most likely because another action has preempted it.

GCKErrorCodeReplaced 

Error code indicating that a request has been replaced by another request of the same type.

GCKErrorCodeNotAllowed 

Error code indicating that the request was disallowed and could not be completed.

GCKErrorCodeDuplicateRequest 

Error code indicating that a request could not be made because the same type of request is still in process.

GCKErrorCodeInvalidState 

Error code indicating that the request is not allowed in the current state.

GCKErrorCodeSendBufferFull 

Error code indicating that data could not be sent because the send buffer is full.

GCKErrorCodeMessageTooBig 

Error indicating that the request could not be sent because the message exceeds the maximum allowed message size.

GCKErrorCodeChannelNotConnected 

Error indicating that a channel operation could not be completed because the channel is not currently connected.

GCKErrorCodeDeviceAuthorizationFailure 

Error indicating that the user is not authorized to use a Cast device.

GCKErrorCodeDeviceNotConnected 

Error indicating that a device request could not be completed because there is no connection currently established to the device.

GCKErrorCodeProtocolVersionMismatch 

Error indicating that there is a mismatch between the protocol versions being used on the sender and the receiver for a given namespace implementation.

GCKErrorCodeMaxUsersConnected 

Error indicating that the maximum number of users is already connected to the receiver.

GCKErrorCodeNetworkNotReachable 

Error indicating that the network is not reachable.

GCKErrorCodeProtocolError 

Error indicating a protocol error (invalid data received).

GCKErrorCodeAlreadyInitialized 

Error indicating that an attempt was made to initialize an already initialized singleton.

GCKErrorCodeApplicationNotFound 

Error code indicating that a requested application could not be found.

GCKErrorCodeApplicationNotRunning 

Error code indicating that a requested application is not currently running.

GCKErrorCodeInvalidApplicationSessionID 

Error code indicating that the application session ID was not valid.

GCKErrorCodeMediaLoadFailed 

Error code indicating that a media load failed on the receiver side.

GCKErrorCodeInvalidMediaPlayerState 

Error code indicating that a media media command failed because of the media player state.

GCKErrorCodeNoMediaSession 

Error indicating that no media session is currently available.

GCKErrorCodeAuthenticationErrorReceived 

Error code indicating that device authentication failed due to error received.

GCKErrorCodeMalformedClientCertificate 

Error code indicating that device authentication failed because a malformed client certificate is received.

GCKErrorCodeNotX509Certificate 

Error code indicating that device authentication failed because certificate received from Chromecast is not expected format.

GCKErrorCodeDeviceCertificateNotTrusted 

Error code indicating that device authentication failed because the device certificate is not trusted.

GCKErrorCodeSSLCertificateNotTrusted 

Error code indicating that device authentication failed because the SSL certificate is not trusted.

GCKErrorCodeMalformedAuthenticationResponse 

Error code indicating that device authentication failed because the response from device is malformed.

GCKErrorCodeDeviceCapabilityNotSupported 

Error code indicating that device authentication failed because the device capability shows unsupported.

GCKErrorCodeCRLInvalid 

Error code indicating that device authentication failed because CRL from device is invalid.

GCKErrorCodeCRLCheckFailed 

Error code indicating that device authentication failed because device certificate is revoked by CRL.

GCKErrorCodeBroadcastMessageEncryptionFailed 

Error code indicating that the broadcast message failed to encrypt.

GCKErrorCodeBroadcastKeyExchangeInvalidResponse 

Error code indicating that the key exchange response is invalid.

GCKErrorCodeBroadcastKeyExchangeInvalidInput 

Error code indicating that the key exchange response shows an invalid input error.

GCKErrorCodeBroadcastKeyExchangeEmptyResponse 

Error code indicating that the key exchange response doesn't contain a wrapped sender key.

GCKErrorCodeBroadcastKeyExchangeRequestTimeout 

Error code indicating that the key exchange request has timed out.

GCKErrorCodeBroadcastKeyExchangeFailedToFindDevice 

Error code indicating that no device that is capable for key exchange can be found.

GCKErrorCodeBroadcastKeyExchangeFailedToConnect 

Error code indicating that it failed to connect to the device that is capable for key exchange.

GCKErrorCodeBroadcastMessageDropped 

Error code indicating that the broadcast message is dropped because of cache limit.

GCKErrorCodeBroadcastSocketError 

Error code indicating that the broadcast message is not sent out due to socket error.

GCKErrorCodeBroadcastFailedToGenerateEncryptionKey 

Error code indicating that the broadcast encryption key is failed to be generated.

GCKErrorCodeRemoteDisplayError 

Error code indicating that an unspecified Remote Display error has occurred.

Additional details may be available in the value associated with the key kGCKErrorExtraInfoKey in the user info.

GCKErrorCodeRemoteDisplayDeviceNotSupported 

Error code indicating that the target device does not support Remote Display.

GCKErrorCodeRemoteDisplayFeatureNotSupported 

Error code indicating that the target device does not support a paraticular Remote Display feature.

GCKErrorCodeRemoteDisplayConfigurationRejectedByReceiver 

Error code indicating that the provided Remote Display configuration has been rejected by the receiver device.

GCKErrorCodeRemoteDisplayOpenGLError 

Error indicating that an OpenGL error has occurred.

Additional details may be available in the value associated with the key kGCKErrorExtraInfoKey in the user info.

GCKErrorCodeRemoteDisplayMetalError 

Error indicating that a Metal error has occurred.

Additional details may be available in the value associated with the key kGCKErrorExtraInfoKey in the user info.

GCKErrorCodeRemoteDisplayAudioConversionError 

Error indicating that an audio conversion error has occurred.

Additional details may be available in the value associated with the key kGCKErrorExtraInfoKey in the user info.

GCKErrorCodeAppDidEnterBackground 

Error code indicating that the application moved to the background.

GCKErrorCodeDisconnected 

Error code indicating that the connection to the receiver was closed.

GCKErrorCodeUnsupportedFeature 

Error code indicating that the feature or action is unsupported either on this iOS device or the receiver.

GCKErrorCodeUnknown 

Error code indicating that an unknown, unexpected error has occurred.

Variable Documentation

NSString* const kGCKErrorCustomDataKey

The key for the customData JSON object associated with the error in the userInfo dictionary.

NSString* const kGCKErrorExtraInfoKey

The key for extra error information, such as an API-specific error description.

NSString* const kGCKErrorDomain

The error domain for GCKErrorCode.