Constructor

Error

new Error(code, opt_description, opt_details)

Describes an error returned by the API. Normally, these objects should not be created by the client.

Parameter

code

chrome.cast.ErrorCode

The error code.

Value must not be null.

opt_description

Optional

string

Description of the error.

opt_details

Optional

Object

Details specific to the error.

Properties

code

non-null chrome.cast.ErrorCode

The error code.

description

nullable string

Human readable description of the error.

details

Object

Details specific to the error. The description of the error code will include the format of the object if one is set.