KommandCancelledError

public struct KommandCancelledError<Result> : RecoverableError

Kommander cancelled error

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

    Declaration

    Swift

    public var recoveryOptions: [String] { get }
  • 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.

    This entry point is used for recovery of errors handled at the application granularity, where nothing else in the application can proceed until the attempted error recovery completes.

    Declaration

    Swift

    public func attemptRecovery(optionIndex recoveryOptionIndex: Int) -> Bool