Instance Method
インスタンスメソッド
attemptRecovery(fromError:optionIndex:)
Implemented to attempt a recovery from an error noted in an application-modal dialog.
アプリケーションモーダルダイアログにおいて注記されるエラーからの復旧を試みるために実装されます。
Declaration
宣言
func attemptRecovery(fromError error: Error
,
optionIndex recoveryOptionIndex: Int
) -> Bool
Parameters
パラメータ
error
An NSError
object that describes the error, including error recovery options.
recoveryOptionIndex
The index of the user selected recovery option in error
's localized recovery array.
Return Value
戻り値
true
if the error recovery was completed successfully, false
otherwise.
Discussion
解説
Invoked when an error alert is been presented to the user in an application-modal dialog, and the user has selected an error recovery option specified by error
.
See Also
参照
Attempting Recovery From Errors
エラーからの復旧を試みる