---
title: UnderlyingError
framework: SiriKit Cloud Media
role: symbol
role_heading: Object
platforms: [sirikit cloud media 1.0.2+]
path: sirikitcloudmedia/underlyingerror
---

# UnderlyingError

An object that describes a system framework error.

## Declaration

```data
object UnderlyingError
```

## Properties

errorCode: The error’s identity. errorDomain: The error’s domain.

## Discussion

Discussion The client depends on a number of system frameworks that manage user interaction and media playback, each of which can generate its own errors. For example, if your service provides a Content object that contains a malformed or expired URL, the AVFoundation framework generates an error when it attempts to load that URL. The client uses this object to provide details of the framework error when it reports the playback failure to your service. For more information, see Recover from Content Playback Failure. An error code is unique only within its associated error domain. Therefore, use errorDomain to determine the origin of the error on the client, and then use errorCode to identify the specific error within that domain.
