---
title: MTLCommandBufferEncoderInfoErrorKey
framework: metal
role: symbol
role_heading: Global Variable
path: metal/mtlcommandbufferencoderinfoerrorkey
---

# MTLCommandBufferEncoderInfoErrorKey

A key to a command buffer error’s user information dictionary that retrieves additional information about a GPU’s runtime error.

## Declaration

```swift
let MTLCommandBufferEncoderInfoErrorKey: String
```

## Discussion

Discussion You can retrieve an MTLCommandBufferEncoderInfo instance from the userInfo dictionary of a command buffer’s error property.

## See Also

### Getting error details

- [error](metal/mtlcommandbuffer/error.md)
- [errorOptions](metal/mtlcommandbuffer/erroroptions.md)
- [MTLCommandBufferEncoderInfo](metal/mtlcommandbufferencoderinfo.md)
