MsieJavaScriptEngine.JsRt.JavaScriptContext.SetException C# (CSharp) Method

SetException() public static method

Sets the runtime of the current context to an exception state.

If the runtime of the current context is already in an exception state, this API will throw JsErrorInExceptionState.

Requires an active script context.

public static SetException ( JavaScriptValue exception ) : void
exception JavaScriptValue /// The JavaScript exception to set for the runtime of the current context. ///
return void
        public static void SetException(JavaScriptValue exception)
        {
            Native.ThrowIfError(Native.JsSetException(exception));
        }