IOError

public struct IOError : Swift.Error

An Error for an IO operation.

  • Undocumented

    See more

    Declaration

    Swift

    public enum FailureDescription
  • The errno that was set for the operation.

    Declaration

    Swift

    public let errnoCode: Int32
  • The actual reason (in an human-readable form) for this IOError.

    Declaration

    Swift

    public let reason: FailureDescription
  • Creates a new IOError`

    Note

    At the moment, this constructor is more expensive than IOError(errnoCode:function:) as the String will incur reference counting

    Declaration

    Swift

    public init(errnoCode: Int32, reason: String)
  • Creates a new IOError`

    Note

    This constructor is the cheapest way to create an IOError.

    Declaration

    Swift

    public init(errnoCode: Int32, function: StaticString)
  • Declaration

    Swift

    public var description: String { get }
  • Undocumented

    Declaration

    Swift

    public var localizedDescription: String { get }