Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
COMException.cs
Go to the documentation of this file.
3using System.Text;
4
6
8[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
10{
11 public COMException()
12 : base(SR.Arg_COMException)
13 {
14 base.HResult = -2147467259;
15 }
16
17 public COMException(string? message)
18 : base(message)
19 {
20 base.HResult = -2147467259;
21 }
22
23 public COMException(string? message, Exception? inner)
24 : base(message, inner)
25 {
26 base.HResult = -2147467259;
27 }
28
29 public COMException(string? message, int errorCode)
30 : base(message)
31 {
33 }
34
36 : base(info, context)
37 {
38 }
39
40 public override string ToString()
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 }
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 }
67}
virtual ? string StackTrace
Definition Exception.cs:143
virtual string Message
Definition Exception.cs:100
new Type GetType()
Definition Exception.cs:437
Exception? InnerException
Definition Exception.cs:104
COMException(string? message, Exception? inner)
COMException(SerializationInfo info, StreamingContext context)
COMException(string? message, int errorCode)
Definition SR.cs:7