Class: Error

  • chrome.cast.Error objects describe errors returned by the Cast API and are usually not created directly by the client.

  • These error objects contain an error code (code), an optional human-readable description (description), and optional error-specific details (details).

  • The code property is a value from the chrome.cast.ErrorCode enumeration, providing a specific error classification.

  • description and details properties offer further information for understanding and handling the error.

Constructor

Error

new Error(code, description, details)

Parameter

code

chrome.cast.ErrorCode

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.