Lớp GCKError
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Một lớp con của NSError để báo lỗi khung.
Kế thừa NSError.
Tạo GCKError với mã lỗi đã cho và dữ liệu tuỳ chỉnh không bắt buộc.
Trả về nội dung mô tả mà con người có thể đọc được cho một mã lỗi cụ thể.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2023-12-02 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2023-12-02 UTC."],[[["`GCKError` is a subclass of `NSError` specifically designed for Google Cast framework errors."],["You can construct a `GCKError` instance with an error code and optional custom data."],["`GCKError` provides a method to retrieve a human-readable description for a given error code."],["The class includes methods for constructing instances with specified error codes and custom data."]]],["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"]]