IOError

public enum IOError : Error

Error type for errors which occurred while working with sockets and streams.

  • Indicates that the socket handle which is used is not correct and does not belong to a socket

    Declaration

    Swift

    case invalidSocket
  • Indicates that an input stream received a bad message.

    Declaration

    Swift

    case badMessage
  • Indicates that an invalid operation was executed.

    Declaration

    Swift

    case invalid
  • Indicates that a buffer overflow occurred.

    Declaration

    Swift

    case overflow
  • Indicates that not enough ressources are available to handle a socket.

    Declaration

    Swift

    case insufficientRessources
  • Indicates that not enough memory is available to handle a socket.

    Declaration

    Swift

    case outOfMemory
  • Indicates that the target of a stream or a socket does not exist.

    Declaration

    Swift

    case nonexistentDevice
  • Indicates that the process does not have the appropriate privileges to access the peer.

    Declaration

    Swift

    case insufficientPermissions
  • Indicates that the network is down.

    Declaration

    Swift

    case networkDown
  • Indicates that there is no route to the peer of a socket.

    Declaration

    Swift

    case noRoute
  • Indicates that a socket is no longer connected.

    Declaration

    Swift

    case connectionReset
  • Indicates that a socket is not connected.

    Declaration

    Swift

    case notConnected
  • Indicates that the connection timed out.

    Declaration

    Swift

    case timedOut
  • Indicates that a physical I/O error occurred.

    Declaration

    Swift

    case physical
  • Indicates that the connection is broken.

    Declaration

    Swift

    case brokenPipe
  • Indicates that the peer cannot be reached.

    Declaration

    Swift

    case unreachable
  • Indicates that the end of the transmission was reached.

    Declaration

    Swift

    case endOfFile
  • Indicates that an operation on the socket was interrupted by the system. This error is not fatal and the operation should be tried again.

    Declaration

    Swift

    case interrupted
  • Indicates that a read or write operation could not be initiated because the socket is busy and the thread which performs the operation would be blocked. This error is not fatal and the operation should be tried again.

    Declaration

    Swift

    case again
  • Indicates that a read or write operation could not be initiated because the socket is busy and the thread which performs the operation would be blocked. This error is not fatal and the operation should be tried again.

    Declaration

    Swift

    case wouldBlock
  • Indicates an unknown error.

    Declaration

    Swift

    case unknown