SAPError

public protocol SAPError : LocalizedError, CustomDebugStringConvertible, CustomStringConvertible

A type representing an error value that can be thrown. It is a collection of few protocols:

  • CustomStringConvertible
  • CustomDebugStringConvertible
  • LocalizedError (with default implementation returning nil)
  • errorDescription Extension method

    A localized message describing what error occurred.

    Declaration

    Swift

    public var errorDescription: String? { get }
  • failureReason Extension method

    A localized message describing the reason for the failure.

    Declaration

    Swift

    public var failureReason: String? { get }
  • recoverySuggestion Extension method

    A localized message describing how one might recover from the failure.

    Declaration

    Swift

    public var recoverySuggestion: String? { get }
  • helpAnchor Extension method

    A localized message providing “help” text if the user requests help.

    Declaration

    Swift

    public var helpAnchor: String? { get }