fatalError

context(env: JniEnv, autofreeScope: AutofreeScope)
fun fatalError(message: CValuesRef<ByteVar>?): Nothing(source)

Raises a fatal error and does not expect the VM to recover.

This function does not return.

Parameters

message

an error message in the null-terminated modified UTF-8. Use String.modifiedUtf8 to get it, or if you are sure that your string doesn't have illegal characters you may use optimized String.utf8.


context(env: JniEnv, autofreeScope: AutofreeScope)
inline fun fatalError(message: String): Nothing(source)

Alias for fatalError which accepts the message as a Kotlin String.