---
title: errorState
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlcommandbufferencoderinfo/errorstate
---

# errorState

The execution status of the command encoder.

## Declaration

```swift
var errorState: MTLCommandEncoderErrorState { get }
```

## See Also

### Inspecting execution information

- [label](metal/mtlcommandbufferencoderinfo/label.md)
- [debugSignposts](metal/mtlcommandbufferencoderinfo/debugsignposts.md)
- [MTLCommandEncoderErrorState](metal/mtlcommandencodererrorstate.md)
