AI-generated Key Takeaways
-
chrome.cast.Error describes an error returned by the Cast API and should not normally be created by the client.
-
The Error object has a constructor that takes an error code, an optional description, and optional details.
-
The Error object has properties for code, description, and details, reflecting the values passed to the constructor.
-
The error code is a non-null chrome.cast.ErrorCode.
chrome.cast. Error
Describes an error returned by the API. Normally, these objects should not be created by the client.
Constructor
Error
new Error(code, description, details)
Parameter |
|
|---|---|
|
code |
The error code. Value must not be null. |
|
description |
Optional string Description of the error. |
|
details |
Optional Object Details specific to the error. Value must not be null. |
Properties
code
non-null chrome.cast.ErrorCode
The error code.
description
nullable string
Human readable description of the error.
details
nullable Object
Details specific to the error. The description of the error code will include the format of the object if one is set.