Unconditionally prints a given message and stops execution.
Parameters:message: The string to print. The default is an empty string.
file: The file name to print with message. The default is the file
where fatalError(_:file:line:) is called.
line: The line number to print along with message. The default is the
line number where fatalError(_:file:line:) is called.
Unconditionally prints a given message and stops execution.
Parameters: message: The string to print. The default is an empty string. file: The file name to print with
message
. The default is the file wherefatalError(_:file:line:)
is called. line: The line number to print along withmessage
. The default is the line number wherefatalError(_:file:line:)
is called.Declaration
func
fatalError
(
_
message
: @
autoclosure
() -
>
String
=
default
,
file
:
StaticString
= #
file
,
line
:
UInt
= #
line
) -
>
Never