Error

public extension Error where Self: CustomNSError
public extension Error where Self: CustomNSError, Self: LocalizedError

Public Properties

  • Returns the underlying error.

    Declaration

    Swift

    var underlyingError: Error? { get }
  • Returns the localized error user info dictionary, which will include the LocalizedError.errorDescription and LocalizedError.failureReason if non-nil.

    Declaration

    Swift

    var localizedErrorUserInfo: [String : Any] { get }