FatalErrorUtilities
public enum FatalErrorUtilities
A utility type that replaces the internal implementation of fatalError().
-
A closure that handles a fatal error.
Declaration
Swift
public typealias FatalErrorClosure = (Error, StaticString, UInt) -> Never -
Replaces the internal implementation of
fatalError(_:file:line:)with the given closure. Returns aRestorationHandlerto execute that restores the original implentation.Declaration
Swift
static public func replaceFatalError( with closure: @escaping FatalErrorClosure ) -> RestorationHandlerParameters
closureThe closure to execute when
fatalError(_:file:line:)is called.
View on GitHub
FatalErrorUtilities Enumeration Reference