/// <summary> /// Occurs when an error occurs during compilation or execution /// </summary> /// <param name="sender"></param> /// <param name="e"></param> static void OnCompilerException(object sender, VsaScriptingHostCompilerExceptionEventArgs e) { Debug.WriteLine(e.Exception); }
/// <summary> /// Raises the CompilerException event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected virtual void OnCompilerException(object sender, VsaScriptingHostCompilerExceptionEventArgs e) { try { if (this.CompilerException != null) this.CompilerException(sender, e); } catch (Exception ex) { Trace.WriteLine(ex); } }