---
title: XPCRichError
framework: xpc
role: symbol
role_heading: Structure
path: xpc/xpcricherror
---

# XPCRichError

An error that contains a description and indicates if you can retry the operation that caused the error.

## Declaration

```swift
struct XPCRichError
```

## Topics

### Error properties

- [canRetry](xpc/xpcricherror/canretry.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Error](swift/error.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Errors

- [XPC_TYPE_RICH_ERROR](xpc/xpc_type_rich_error-swift.var.md)
- [XPC_TYPE_ERROR](xpc/xpc_type_error-swift.var.md)
- [XPC_ERROR_KEY_DESCRIPTION](xpc/xpc_error_key_description-swift.var.md)
- [XPC_ERROR_PEER_CODE_SIGNING_REQUIREMENT](xpc/xpc_error_peer_code_signing_requirement-swift.var.md)
