Create() static private method

static private Create ( IActiveScriptError error ) : ActiveScriptException
error IActiveScriptError
return ActiveScriptException
            public void OnScriptErrorDebug(IActiveScriptErrorDebug errorDebug, out bool enterDebugger,
                                           out bool callOnScriptErrorWhenContinuing)
            {
                var error = errorDebug as IActiveScriptError;

                if (error != null)
                {
                    _jsEngine._lastException = ActiveScriptException.Create(GetErrorDetails(error), error);
                }

                enterDebugger = true;
                callOnScriptErrorWhenContinuing = true;
            }
示例#2
0
 /// <summary>
 /// Informs the host that an execution error occurred while the engine was running the script.
 /// </summary>
 /// <param name="scriptError">A host can use this interface to obtain information about the
 /// execution error</param>
 void IActiveScriptSite.OnScriptError(IActiveScriptError scriptError)
 {
     _lastException = ActiveScriptException.Create(scriptError);
 }
示例#3
0
 /// <summary>
 /// Informs the host that an execution error occurred while the engine was running the script.
 /// </summary>
 /// <param name="scriptError">A host can use this interface to obtain information about the
 /// execution error</param>
 public void OnScriptError(IActiveScriptError scriptError)
 {
     _lastException = ActiveScriptException.Create(scriptError);
     OnScriptError(_lastException);
 }
 public void OnScriptError(IActiveScriptError error)
 {
     _jsEngine._lastException = ActiveScriptException.Create(GetErrorDetails(error), error);
 }