protected override void GetSessionData(XmlElement root, XmlElement element)
{
XmlElement exception_e = root.OwnerDocument.CreateElement ("Exception");
exception_e.SetAttribute ("type", Name);
exception_e.SetAttribute ("unhandled", Unhandled ? "true" : "false");
element.AppendChild (exception_e);
}