---
title: "attemptRecovery(optionIndex:resultHandler:)"
framework: managedappdistribution
role: symbol
role_heading: Instance Method
path: "managedappdistribution/managedappdistributionerror/attemptrecovery(optionindex:resulthandler:)"
---

# attemptRecovery(optionIndex:resultHandler:)

Attempt to recover from this error when someone selects the option at the given index.

## Declaration

```swift
func attemptRecovery(optionIndex recoveryOptionIndex: Int, resultHandler handler: @escaping (Bool) -> Void)
```

## See Also

### Recovering from errors

- [attemptRecovery(optionIndex:)](managedappdistribution/managedappdistributionerror/attemptrecovery(optionindex:).md)
