IOException

open class IOException : Exception

An exception thrown due to an issue with program input or output.

  • Initializes an Exception instance.

    Declaration

    Swift

    public init(error: IOError, message: String?, stackTrace: [String]?)

    Parameters

    error

    The error causing the exception.

    message

    A human-readable message explaining the error.

    stackTrace

    The stack trace at the time the exception was thrown. Defaults to Thread.callStackSymbols.