# GCKError.h File

[Classes](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#nested-classes) \| [Enumerations](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#enum-members) \| [Variables](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#var-members) GCKError.h File Reference Framework errors.
[More...](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#details)

|---|---|
| ## Classes ||
| class | [GCKError](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_error) |
|   | A subclass of [**NSError**](https://goo.gl/WJbrdL) for framework errors. [More...](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_error#details) |
|   ||

|---|---|
| ## Enumerations ||
| enum | [GCKErrorCode](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cc) { [GCKErrorCodeNoError](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccac37b1d62e15e3d9288e601862ab84284) = 0, [GCKErrorCodeNetworkError](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca93c57d0e6b4194a3d493d111a88d987c) = 1, [GCKErrorCodeTimeout](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca1d18b87ca3636cbf1dfea103958f3cf3) = 2, [GCKErrorCodeDeviceAuthenticationFailure](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccaace6267da20900d5137481ac0a989e1c) = 3, [GCKErrorCodeInvalidRequest](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca65df62852e44a0747124c87f41f4983c) = 4, [GCKErrorCodeCancelled](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca24c18d95e6f27772bce1f6ff32b5e548) = 5, [GCKErrorCodeReplaced](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccaacdbce709e43b069989614cd684b2860) = 6, [GCKErrorCodeNotAllowed](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccac8f72bb0869bdfbc20d0fc7fe0cb2e2e) = 7, [GCKErrorCodeDuplicateRequest](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccad87bf86767499836ce0ef80a7a8debb7) = 8, [GCKErrorCodeInvalidState](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccaddd4d9928ccb8aafec10e025f56fa9e1) = 9, [GCKErrorCodeSendBufferFull](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca5ea3568647914752e785c72427e956fb) = 10, [GCKErrorCodeMessageTooBig](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca2de1d2879aab2b7fddc2caa48cfaf123) = 11, [GCKErrorCodeChannelNotConnected](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca3bfdcf60e0872af4cd37085afabaf288) = 12, [GCKErrorCodeDeviceAuthorizationFailure](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccaba0f296df4e1349b75e99486e0918404) = 13, [GCKErrorCodeDeviceNotConnected](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccaaf99a7cc73865e4128d6e9dbe7733cf2) = 14, [GCKErrorCodeProtocolVersionMismatch](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccaab3c728463e2f9b4254682685e77609e) = 15, [GCKErrorCodeMaxUsersConnected](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca7162c8102dd2cf9fd130756fd9019525) = 16, [GCKErrorCodeNetworkNotReachable](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca65e869c790e7122c9f5dea8cc2bbc458) = 17, [GCKErrorCodeProtocolError](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca8fa0af38f75138127e269f2ebf926084) = 18, [GCKErrorCodeApplicationNotFound](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca3027b1595bb05753d9e591423da33fce) = 20, [GCKErrorCodeApplicationNotRunning](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccab9206c61b7b355d49d54cd46c34b7d19) = 21, [GCKErrorCodeInvalidApplicationSessionID](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccae6a09081e36ace8dc0c4754881f90632) = 22, [GCKErrorCodeMediaLoadFailed](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca15512b3ad7b0797186a4c86124a9224c) = 30, [GCKErrorCodeInvalidMediaPlayerState](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccac1d160730736784ba528c27a6a9affb1) = 31, [GCKErrorCodeNoMediaSession](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccac55735e1a8cf7502cf518d63c9004276) = 32, [GCKErrorCodeAuthenticationErrorReceived](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca0adf14bac1be96087afd6dee0934f5eb) = 40, [GCKErrorCodeMalformedClientCertificate](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca0c9a82271853ca09ace83fce955c1acd) = 41, [GCKErrorCodeNotX509Certificate](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca8ec93e6e586b9db955a67dace0b88762) = 42, [GCKErrorCodeDeviceCertificateNotTrusted](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca40f6553c147f4af91edbd2b56c2a1cd2) = 43, [GCKErrorCodeSSLCertificateNotTrusted](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca4736b499953e99f2e46d5db085699def) = 44, [GCKErrorCodeMalformedAuthenticationResponse](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca90272758a323d42d1868b45545ca0b6f) = 45, [GCKErrorCodeDeviceCapabilityNotSupported](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca819a977379dffdbe5307631b235f26e0) = 46, [GCKErrorCodeCRLInvalid](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccae68c4b20124b7084b2518fa92bd0cdc6) = 47, [GCKErrorCodeCRLCheckFailed](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca1d3a437387511b0152af5023ef829391) = 48, [GCKErrorCodeAppDidEnterBackground](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca0c8cf602e09bed37da6487645724e239) = 91, [GCKErrorCodeDisconnected](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca81430f1bf37e2ebeaea6ad120c56f0dd) = 92, [GCKErrorCodeUnsupportedFeature](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9ccad29e78cf154c53547ce6cc3bcf718936) = 93, [GCKErrorCodeUnknown](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cca2589846508f94848e95a937ae242425b) = 99 } |
|   | Framework error codes. [More...](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cc) |
|   ||

|---|---|
| ## Variables ||
| NSString \*const | [kGCKErrorCustomDataKey](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#a6217ab0dfe1c723d8c6f4e19d61fe2f1) |
|   | The key for the customData JSON object associated with the error in the userInfo dictionary. [More...](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#a6217ab0dfe1c723d8c6f4e19d61fe2f1) |
|   ||
| NSString \*const | [kGCKErrorDomain](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#a6bb1efae2c813837ddc16b043fe2bcc1) |
|   | The error domain for GCKErrorCode. [More...](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#a6bb1efae2c813837ddc16b043fe2bcc1) |
|   ||

## Detailed Description

Framework errors.

## Enumeration Type Documentation

|---|
| enum [GCKErrorCode](https://developers.google.com/cast/v3/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cc) |

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.