示例#1
0
        public static exception Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            exception _exception = new exception();

            _exception.m_rocrailClient = rocrailClient;
            _exception.m_level         = (int?)xml.Attribute("level");
            _exception.m_text          = (string)xml.Attribute("text");
            return(_exception);
        }
示例#2
0
 public void Update(exception element)
 {
     if (element.m_level.HasValue == true)
     {
         this.level = element.level;
     }
     if (element.m_text != null)
     {
         this.text = element.text;
     }
 }