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

            _lastException = null;
            return(temp);
        }
Example #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)
 {
 }
Example #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);
 }