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); }
public void Update(exception element) { if (element.m_level.HasValue == true) { this.level = element.level; } if (element.m_text != null) { this.text = element.text; } }