---
title: code
framework: TVMLKit JS
role: symbol
role_heading: Instance Property
platforms: [tvOS 11.0+]
path: tvmljs/nserror/2897820-code
---

# code

The error code.

## Declaration

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

## Discussion

Discussion Errors are domain specific.

## See Also

### Getting Error Properties

- [domain](tvmljs/nserror/2897831-domain.md)
- [userInfo](tvmljs/nserror/2897822-userinfo.md)
- [underlyingError](tvmljs/nserror/2897821-underlyingerror.md)
