Ejemplo n.º 1
0
 protected static List <ErrorWithPath> CreateFromSingleError(ErrorWithPath error)
 {
     return(new List <ErrorWithPath>(1)
     {
         error
     });
 }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="error"></param>
 protected static void SaveErrorMessage(ErrorWithPath error)
 {
     using (var writer = new StreamWriter("XTMF.ErrorLog.txt", true))
     {
         writer.WriteLine(error.Message);
         writer.WriteLine();
         writer.WriteLine(error.StackTrace);
     }
 }
Ejemplo n.º 3
0
 protected void InvokeRuntimeError(ErrorWithPath error)
 {
     SaveErrorMessage(error);
     RuntimeError?.Invoke(error);
 }