Dữ liệu dành riêng cho ứng dụng đối với yêu cầu này. Công cụ này cho phép người gửi và
để dễ dàng mở rộng giao thức truyền thông mà không phải sử dụng một
không gian tên với thông báo tuỳ chỉnh.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003ecast.framework.messages.ErrorData\u003c/code\u003e provides structured information about errors occurring within the Cast framework.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003etype\u003c/code\u003e, \u003ccode\u003ereason\u003c/code\u003e, \u003ccode\u003edetailedErrorCode\u003c/code\u003e, and \u003ccode\u003ecustomData\u003c/code\u003e to offer detailed insights into the error.\u003c/p\u003e\n"],["\u003cp\u003eAn \u003ccode\u003eErrorData\u003c/code\u003e object is associated with a specific request, identified by its \u003ccode\u003erequestId\u003c/code\u003e, and might be linked to a queue item via \u003ccode\u003eitemId\u003c/code\u003e if applicable.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize \u003ccode\u003ecustomData\u003c/code\u003e for application-specific error handling and debugging.\u003c/p\u003e\n"]]],[],null,["# Class: ErrorData\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).ErrorData\n==================================================================================================================================================\n\nclass static\n\nRepresents error information.\n\nConstructor\n-----------\n\n### ErrorData\n\nnew\nErrorData(type)\n\n| #### Parameter ||\n|------|-----------------------------------------------------------------------------------------------------------------------------------|\n| type | [cast.framework.messages.ErrorType](/cast/docs/reference/web_receiver/cast.framework.messages#.ErrorType) Value must not be null. |\n\nProperties\n----------\n\n### customData\n\n(nullable Object or undefined)\n\nApplication-specific data for this request. It enables the sender and\nreceiver to easily extend the media protocol without having to use a new\nnamespace with custom messages.\n\n### detailedErrorCode\n\n(non-null [cast.framework.events.DetailedErrorCode](/cast/docs/reference/web_receiver/cast.framework.events#.DetailedErrorCode) or undefined)\n\nOptional detailed error code from player.\n\n### itemId\n\n(number or undefined)\n\nAn itemId of a queue item for errors that were related to a particular\nqueue item. For example, when loading a queue item failed.\n\n### reason\n\n(non-null [cast.framework.messages.ErrorReason](/cast/docs/reference/web_receiver/cast.framework.messages#.ErrorReason) or undefined)\n\nThe error reason.\n\n### requestId\n\nnumber\n\nID of the request, used to correlate request/response.\n\n### type\n\nnon-null [cast.framework.messages.ErrorType](/cast/docs/reference/web_receiver/cast.framework.messages#.ErrorType)"]]