AI-generated Key Takeaways
-
The cast.framework.messages.ErrorData class represents error information within the Cast framework.
-
It can include application-specific custom data and an optional detailed error code.
-
ErrorData can contain an itemId if the error is related to a specific queue item.
-
It includes an error reason and a request ID to correlate with a specific request.
-
The ErrorData object must include a non-null error type.
cast.framework.messages. ErrorData
Represents error information.
Constructor
ErrorData
new ErrorData(type)
Parameter |
|
---|---|
type |
cast.framework.messages.ErrorType Value must not be null. |
Properties
customData
(nullable Object or undefined)
Application-specific data for this request. It enables the sender and receiver to easily extend the media protocol without having to use a new namespace with custom messages.
detailedErrorCode
(non-null cast.framework.events.DetailedErrorCode or undefined)
Optional detailed error code from player.
itemId
(number or undefined)
An itemId of a queue item for errors that were related to a particular queue item. For example, when loading a queue item failed.
reason
(non-null cast.framework.messages.ErrorReason or undefined)
The error reason.
requestId
number
ID of the request, used to correlate request/response.
type
non-null cast.framework.messages.ErrorType