JsSetException() private method

private JsSetException ( IeJsValue exception ) : JsErrorCode
exception IeJsValue
return JsErrorCode
示例#1
0
 /// <summary>
 /// Sets a runtime of the current context to an exception state
 /// </summary>
 /// <remarks>
 /// <para>
 /// If the runtime of the current context is already in an exception state, this API will
 /// throw <c>JsErrorInExceptionState</c>.
 /// </para>
 /// <para>
 /// Requires an active script context.
 /// </para>
 /// </remarks>
 /// <param name="exception">The JavaScript exception to set for the runtime of the current context</param>
 public static void SetException(IeJsValue exception)
 {
     IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsSetException(exception));
 }