EAImvertor.EAImvertorJob.setMessages C# (CSharp) Method

setMessages() private method

private setMessages ( XmlDocument xmlReport ) : void
xmlReport System.Xml.XmlDocument
return void
        void setMessages(XmlDocument xmlReport)
        {
            var messageNode = xmlReport.SelectSingleNode("//message");
            var trackNode =  xmlReport.SelectSingleNode("//track");
            if (messageNode != null)
            {
                this.message = messageNode.InnerText;
                //warnings
                foreach (XmlNode warningNode in xmlReport.SelectNodes("//warning")) {
                    this._warnings.Add(createImvertorException(warningNode));
                }
                //errors
                foreach (XmlNode errorNode in xmlReport.SelectNodes("//error")) {
                    this._errors.Add(createImvertorException(errorNode));
                }
            }
            else if (trackNode != null)
            {
                this.message = trackNode.InnerText;
            }
            else
            {
                //make sure to clear any messages that may still linger from a previous status
                this.message = string.Empty;
            }
        }