EAImvertor.EAImvertorJob.createImvertorException C# (CSharp) 메소드

createImvertorException() 개인적인 메소드

private createImvertorException ( XmlNode exceptionNode ) : EAImvertorException
exceptionNode System.Xml.XmlNode
리턴 EAImvertorException
        private EAImvertorException createImvertorException(XmlNode exceptionNode)
        {
            //get guid
            string guid = string.Empty;
            var idAttribue = exceptionNode.Attributes.GetNamedItem("id") as XmlAttribute;
            if (idAttribue != null) guid = idAttribue.Value;

            //get step
            string step = string.Empty;
            var stepNode = exceptionNode.SelectSingleNode("./step");
            if (stepNode != null) step = stepNode.InnerText;

            //get construct
            string construct = string.Empty;
            var constructNode = exceptionNode.SelectSingleNode("./construct");
            if (constructNode != null) construct = constructNode.InnerText;

            //get text
            string text = string.Empty;
            var textNode = exceptionNode.SelectSingleNode("./text");
            if (textNode != null) text = textNode.InnerText;
            return new EAImvertorException(((UTF_EA.Package)this._sourcePackage).model,exceptionNode.Name,guid,step,construct,text);
        }