/// <summary>
 /// Called when [handle error].
 /// This function gets fired for each error handled
 /// </summary>
 /// <param name="e">The e.</param>
 protected override void OnHandleError(StepErrorEventArgs e)
 {
     if (e.Info is UnauthorizedAccessException)
     { Console.WriteLine("Unauthorized access message: {0}\n", e.Info.Message); }
     else if (e.Info is DirectoryNotFoundException)
     { Console.WriteLine("Directory not found message: {0}\n", e.Info.Message); }
     else if (e.Info is FileNotFoundException)
     { Console.WriteLine("File not found message: {0}\n", e.Info.Message); }
     else { Console.WriteLine("General error message: {0}\n", e.Info.Message); }
 }
Esempio n. 2
0
 /// <summary>
 /// Called when [handle error].
 /// This function gets fired for each error handled
 /// </summary>
 /// <param name="e">The e.</param>
 protected override void OnHandleError(StepErrorEventArgs e)
 {
     if (e.Info is UnauthorizedAccessException)
     {
         Console.WriteLine("Unauthorized access message: {0}\n", e.Info.Message);
     }
     else if (e.Info is DirectoryNotFoundException)
     {
         Console.WriteLine("Directory not found message: {0}\n", e.Info.Message);
     }
     else if (e.Info is FileNotFoundException)
     {
         Console.WriteLine("File not found message: {0}\n", e.Info.Message);
     }
     else
     {
         Console.WriteLine("General error message: {0}\n", e.Info.Message);
     }
 }
 /// <summary>
 /// Called when [handle error].
 /// This function gets fired for each error handled
 /// </summary>
 /// <param name="e">The e.</param>
 protected abstract void OnHandleError(StepErrorEventArgs e );
Esempio n. 4
0
 /// <summary>
 /// Called when [handle error].
 /// This function gets fired for each error handled
 /// </summary>
 /// <param name="e">The e.</param>
 protected abstract void OnHandleError(StepErrorEventArgs e);