예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
     }
 }