protected static List <ErrorWithPath> CreateFromSingleError(ErrorWithPath error) { return(new List <ErrorWithPath>(1) { error }); }
/// <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); } }
protected void InvokeRuntimeError(ErrorWithPath error) { SaveErrorMessage(error); RuntimeError?.Invoke(error); }