MsieJavaScriptEngine.JsRt.JavaScriptContext.SetException C# (CSharp) Метод

SetException() публичный статический Метод

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. ///
Результат void
        public static void SetException(JavaScriptValue exception)
        {
            Native.ThrowIfError(Native.JsSetException(exception));
        }