コード例 #1
0
        /// <summary>
        /// Gets and resets the last exception.  Returns null for none.
        /// </summary>
        protected ActiveScriptException GetAndResetLastException()
        {
            var temp = _lastException;

            _lastException = null;
            return(temp);
        }
コード例 #2
0
 /// <summary>
 /// Informs the host that an execution error occurred while the engine was running the script.
 /// </summary>
 /// <param name="exception">The exception.</param>
 protected virtual void OnScriptError(ActiveScriptException exception)
 {
 }
コード例 #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);
 }