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

# underlyingError

The error that was encountered in an underlying implementation and caused the error that the receiver represents to occur.

## Declaration

```data
readonly attribute NSError underlyingError;
```

## See Also

### Getting Error Properties

- [code](tvmljs/nserror/2897820-code.md)
- [domain](tvmljs/nserror/2897831-domain.md)
- [userInfo](tvmljs/nserror/2897822-userinfo.md)
