Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ExternalException.cs
Go to the documentation of this file.
3
5
7[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
9{
10 public virtual int ErrorCode => base.HResult;
11
13 : base(SR.Arg_ExternalException)
14 {
15 base.HResult = -2147467259;
16 }
17
18 public ExternalException(string? message)
19 : base(message)
20 {
21 base.HResult = -2147467259;
22 }
23
24 public ExternalException(string? message, Exception? inner)
25 : base(message, inner)
26 {
27 base.HResult = -2147467259;
28 }
29
30 public ExternalException(string? message, int errorCode)
31 : base(message)
32 {
34 }
35
37 : base(info, context)
38 {
39 }
40
41 public override string ToString()
42 {
43 string message = Message;
44 string text = $"{GetType()} (0x{base.HResult:X8})";
45 if (!string.IsNullOrEmpty(message))
46 {
47 text = text + ": " + message;
48 }
50 if (innerException != null)
51 {
52 text = text + "\r\n ---> " + innerException.ToString();
53 }
54 if (StackTrace != null)
55 {
56 text = text + "\r\n" + StackTrace;
57 }
58 return text;
59 }
60}
override string ToString()
Definition Exception.cs:384
virtual ? string StackTrace
Definition Exception.cs:143
virtual string Message
Definition Exception.cs:100
Exception? InnerException
Definition Exception.cs:104
ExternalException(string? message, Exception? inner)
ExternalException(SerializationInfo info, StreamingContext context)
ExternalException(string? message, int errorCode)
Definition SR.cs:7