---
title: errorOptions
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcommandbuffer/erroroptions
---

# errorOptions

Settings that determine which information the command buffer records about execution errors, and how it does it.

## Declaration

```swift
var errorOptions: MTLCommandBufferErrorOption { get }
```

## Discussion

Discussion The property reflects the errorOptions property of the MTLCommandBufferDescriptor instance at the time you create the command buffer.

## See Also

### Getting error details

- [error](metal/mtlcommandbuffer/error.md)
- [MTLCommandBufferEncoderInfo](metal/mtlcommandbufferencoderinfo.md)
- [MTLCommandBufferEncoderInfoErrorKey](metal/mtlcommandbufferencoderinfoerrorkey.md)
