# cast.[framework](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework).[messages](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages).ErrorData

class static

Represents error information.

## Constructor

### ErrorData

new
ErrorData(type)

| #### Parameter ||
|---|---|
| type | [cast.framework.messages.ErrorType](https://developers.google.com/cast/docs/reference/web_receiver/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](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.events#.DetailedErrorCode) or undefined)

A code assigned by the receiver SDK describing what error occurred.

### 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.

### playerErrorCode

(number, non-null shaka.util.Error.Code, or undefined)

A more specific error code directly from the player.

### reason

(non-null [cast.framework.messages.ErrorReason](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages#.ErrorReason) or undefined)

The error reason.

### requestId

number

ID of the request, used to correlate request/response.

### severity

(non-null [cast.framework.events.ErrorSeverity](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.events#.ErrorSeverity) or undefined)

The error severity level.

### type

non-null [cast.framework.messages.ErrorType](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages#.ErrorType)