---
title: error
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtliocommandbuffer/error
---

# error

Stores the details of an error when the GPU experienced a problem with the input/output command buffer.

## Declaration

```swift
var error: (any Error)? { get }
```

## See Also

### Checking the state of a command buffer

- [status](metal/mtliocommandbuffer/status.md)
