orionError(_:file:line:)

public func orionError(
    _ message: @autoclosure () -> String,
    file: StaticString = #file,
    line: UInt = #line
) -> Never

Raises an unrecoverable error within an Orion-related subsystem, and stops execution. Do not call this outside Orion code.

The default behavior is to forward all arguments to fatalError. This behavior can be modified using updateOrionErrorHandler(_:).

Warning

This function is thread-safe but not reentrant. Do not call orionError(_:file:line:) or updateOrionErrorHandler(_:) inside the message autoclosure.

Parameters

message

The error message.

file

The file name associated with the error. Defaults to the file in which orionError(_:file:line:) was called.

line

The line number associated with the error. Defaults to the line number on which orionError(_:file:line:) was called.