Пример #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);
 }
 /// <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)
 {
 }
 /// <summary>
 /// Gets and resets the last exception.  Returns null for none.
 /// </summary>
 protected ActiveScriptException GetAndResetLastException()
 {
     var temp = _lastException;
     _lastException = null;
     return temp;
 }
 /// <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);
 }