Protocol

RecoverableError

A specialized error that may be recoverable by presenting several potential recovery options to the user.

Declaration

protocol RecoverableError

Topics

Instance Properties

var recoveryOptions: [String]

Provides a set of possible recovery options to present to the user.

Required.

Instance Methods

func attemptRecovery(optionIndex: Int) -> Bool

Attempt to recover from this error when the user selected the option at the given index. Returns true to indicate successful recovery, and false otherwise.

Required.

Relationships

Inherits From

See Also

User-Relevant Errors

protocol Error

A type representing an error value that can be thrown.

class NSError

Information about an error condition including a domain, a domain-specific error code, and application-specific information.

protocol LocalizedError

A specialized error that provides localized messages describing the error and why it occurred.

protocol CustomNSError

A specialized error that provides a domain, error code, and user-info dictionary.