GCKHata Sınıfı
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Çerçeve hataları için bir NSError alt sınıfı.
NSError'ı devralır.
Verilen hata koduyla bir GCKError oluşturur.
Belirtilen hata kodu ve isteğe bağlı özel verilerle bir GCKError oluşturur.
Belirli bir hata kodu için kullanıcılar tarafından okunabilir açıklamayı döndürür.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003eGCKError\u003c/code\u003e is a subclass of \u003ccode\u003eNSError\u003c/code\u003e specifically designed for Google Cast framework errors.\u003c/p\u003e\n"],["\u003cp\u003eYou can construct a \u003ccode\u003eGCKError\u003c/code\u003e instance with an error code and optional custom data.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGCKError\u003c/code\u003e provides a method to retrieve a human-readable description for a given error code.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes methods for constructing instances with specified error codes and custom data.\u003c/p\u003e\n"]]],["The GCKError class, a subclass of NSError, provides methods for handling framework errors. It includes three primary class methods: `errorWithCode:`, which creates a GCKError instance with a specified error code; `errorWithCode:customData:`, which creates a GCKError instance with an error code and optional custom data; and `enumDescriptionForCode:`, which provides a human-readable description for a given error code. These methods are to help with creating error instances and understanding them.\n"],null,["# GCKError Class\n\n[Class Methods](#pub-static-methods) \nGCKError Class Reference \n\nOverview\n--------\n\nA subclass of [**NSError**](https://goo.gl/WJbrdL) for framework errors.\n\nInherits NSError.\n\n|-----------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Class Method Summary -------------------- ||\n| ([GCKError](/cast/docs/reference/ios/interface_g_c_k_error) \\*) | + [errorWithCode:](/cast/docs/reference/ios/interface_g_c_k_error#a44681be97d4f8928a0b7fa6c7fca40ee) |\n| | Constructs a [GCKError](/cast/docs/reference/ios/interface_g_c_k_error \"A subclass of NSError for framework errors. \") with the given error code. [More...](#a44681be97d4f8928a0b7fa6c7fca40ee) |\n| ||\n| ([GCKError](/cast/docs/reference/ios/interface_g_c_k_error) \\*) | + [errorWithCode:customData:](/cast/docs/reference/ios/interface_g_c_k_error#a77893a07e9eb79d41b60ee0185381947) |\n| | Constructs a [GCKError](/cast/docs/reference/ios/interface_g_c_k_error \"A subclass of NSError for framework errors. \") with the given error code and optional custom data. [More...](#a77893a07e9eb79d41b60ee0185381947) |\n| ||\n| (NSString \\*) | + [enumDescriptionForCode:](/cast/docs/reference/ios/interface_g_c_k_error#ab5bab1c17db638b4acea016984c0d96f) |\n| | Returns the human-readable description for a given error code. [More...](#ab5bab1c17db638b4acea016984c0d96f) |\n| ||\n\nMethod Detail\n-------------\n\n|----------------------------------------------------------------------------------|---|---------------------------------------------------------------------------------------------|--------|---|\n| + ([GCKError](/cast/docs/reference/ios/interface_g_c_k_error) \\*) errorWithCode: | | ([GCKErrorCode](/cast/docs/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cc)) | *code* | |\n\nConstructs a [GCKError](/cast/docs/reference/ios/interface_g_c_k_error \"A subclass of NSError for framework errors. \") with the given error code. \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|---------------------------------------------------------------------------------------------|--------------|\n| + ([GCKError](/cast/docs/reference/ios/interface_g_c_k_error) \\*) [errorWithCode:](/cast/docs/reference/ios/interface_g_c_k_error#a44681be97d4f8928a0b7fa6c7fca40ee) | | ([GCKErrorCode](/cast/docs/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cc)) | *code* |\n| customData: | | (nullable id) | *customData* |\n| | | | |\n\nConstructs a [GCKError](/cast/docs/reference/ios/interface_g_c_k_error \"A subclass of NSError for framework errors. \") with the given error code and optional custom data. \n\n|-----------------------------------------|---|---------------------------------------------------------------------------------------------|--------|---|\n| + (NSString \\*) enumDescriptionForCode: | | ([GCKErrorCode](/cast/docs/reference/ios/g_c_k_error_8h#aea7a716be62f301015e255e1ba63a9cc)) | *code* | |\n\nReturns the human-readable description for a given error code."]]