---
title: code
framework: TVMLKit JS
role: symbol
role_heading: Instance Property
platforms: [tvOS 9.0+]
path: tvmljs/tverror/1627334-code
---

# code

The error code.

## Declaration

```data
readonly attribute int code;
```

## Discussion

Discussion All errors are domain-specific.

## See Also

### Getting Error Properties

- [description](tvmljs/tverror/1627424-description.md)
- [domain](tvmljs/tverror/1627426-domain.md)
- [userInfo](tvmljs/tverror/1627388-userinfo.md)
