static private Create ( IActiveScriptError error ) : |
||
error | IActiveScriptError | |
return |
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; }
/// <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); }
/// <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); }