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, 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, 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 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).

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.

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 kGCKErrorDomain

The error domain for GCKErrorCode.