If the runtime of the current context is already in an exception state, this API will throw JsErrorInExceptionState.
JsErrorInExceptionState
Requires an active script context.
public static void SetException(JavaScriptValue exception) { Native.ThrowIfError(Native.JsSetException(exception)); }