public override String ToString() {
String message = Message;
String s;
String _className = GetType().ToString();
s = _className + " (0x" + HResult.ToString("X8", CultureInfo.InvariantCulture) + ")";
if (!(message == null || message.Length <= 0)) {
s = s + ": " + message;
}
Exception _innerException = InnerException;
if (_innerException!=null) {
s = s + " ---> " + _innerException.ToString();
}
if (StackTrace != null)
s += Environment.NewLine + StackTrace;
return s;
}