public void AddMessage(EMReadingMessage message, TransformationData data) { if (message.MessageClass == MessageClass.Error || message.MessageClass == MessageClass.Warning) { HadReadingProblem = true; ErrorId = data.ErrorList.Count; data.ErrorList.Add(Markdown.GenerateError( message.Message, message.MessageClass, Origin.Text, ErrorId, data)); } Messages.Add(message); }
private EMErrorElement(EMDocument doc, EMElementOrigin origin, EMElement parent, EMReadingMessage error, TransformationData data) : base(doc, origin, parent) { AddMessage(error, data); }