public override string ToString()
{
string result = this.GetType().FullName;
string info = FormatDetailedMessage();
if (info != null && info.Length > 0)
{
result += ": " + info;
}
if (InnerException != null)
{
result += " ---> " + InnerException.ToString() + Environment.NewLine + " " + CreateMessage(SR.Xml_EndOfInnerExceptionStack);
}
if (StackTrace != null)
{
result += Environment.NewLine + StackTrace;
}
return result;
}
}