Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToString()

override string System.Runtime.InteropServices.COMException.ToString ( )
inline

Definition at line 40 of file COMException.cs.

41 {
45 handler.AppendFormatted(GetType());
46 handler.AppendLiteral(" (0x");
47 handler.AppendFormatted(base.HResult, "X8");
48 handler.AppendLiteral(")");
49 stringBuilder2.Append(ref handler);
50 string message = Message;
51 if (!string.IsNullOrEmpty(message))
52 {
53 stringBuilder.Append(": ").Append(message);
54 }
55 Exception innerException = base.InnerException;
56 if (innerException != null)
57 {
58 stringBuilder.Append("\r\n ---> ").Append(innerException.ToString());
59 }
60 string stackTrace = StackTrace;
61 if (stackTrace != null)
62 {
63 stringBuilder.AppendLine().Append(stackTrace);
64 }
65 return stringBuilder.ToString();
66 }
virtual ? string StackTrace
Definition Exception.cs:143
virtual string Message
Definition Exception.cs:100
new Type GetType()
Definition Exception.cs:437

References System.Text.StringBuilder.AppendInterpolatedStringHandler.AppendFormatted(), System.Text.StringBuilder.AppendInterpolatedStringHandler.AppendLiteral(), System.Runtime.Serialization.Dictionary, System.Exception.GetType(), System.Exception.InnerException, System.Exception.Message, and System.Exception.StackTrace.