unimplemented(_:throwing:fileID:filePath:function:line:column:)

Returns a throwing closure that reports an issue and throws a given error when invoked.

Unimplemented.swift:92
func unimplemented<each Argument, Failure, Result>(_ description: @autoclosure @escaping () -> String = "", throwing failure: @autoclosure @escaping () -> Failure, fileID: StaticString = #fileID, filePath: StaticString = #filePath, function: StaticString = #function, line: UInt = #line, column: UInt = #column) -> (repeat each Argument) throws(Failure) -> Result where Failure : Error

Parameters

description

An optional description of the unimplemented closure.

failure

The error thrown by the unimplemented closure.

fileID

The fileID.

filePath

The filePath.

function

The function.

line

The line.

column

The column.

Returns

A throwing closure that reports an issue and throws an error when invoked.

Useful for creating closures that need to be overridden by users of your API, and if it is ever invoked without being overridden an issue will be reported. See Unimplemented closures for more information.