Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
COMException.cs
Go to the documentation of this file.
1
using
System.Runtime.CompilerServices
;
2
using
System.Runtime.Serialization
;
3
using
System.Text
;
4
5
namespace
System.Runtime.InteropServices
;
6
7
[
Serializable
]
8
[
TypeForwardedFrom
(
"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
)]
9
public
class
COMException
:
ExternalException
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
{
32
base.HResult
=
errorCode
;
33
}
34
35
protected
COMException
(
SerializationInfo
info
,
StreamingContext
context)
36
:
base
(
info
, context)
37
{
38
}
39
40
public
override
string
ToString
()
41
{
42
StringBuilder
stringBuilder
=
new
StringBuilder
();
43
StringBuilder
stringBuilder2
=
stringBuilder
;
44
StringBuilder.AppendInterpolatedStringHandler
handler =
new
StringBuilder
.
AppendInterpolatedStringHandler
(5, 2,
stringBuilder2
);
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
}
67
}
System.Exception.StackTrace
virtual ? string StackTrace
Definition
Exception.cs:143
System.Exception.Message
virtual string Message
Definition
Exception.cs:100
System.Exception.GetType
new Type GetType()
Definition
Exception.cs:437
System.Exception.InnerException
Exception? InnerException
Definition
Exception.cs:104
System.Exception
Definition
Exception.cs:15
System.Runtime.InteropServices.COMException.COMException
COMException(string? message, Exception? inner)
Definition
COMException.cs:23
System.Runtime.InteropServices.COMException.COMException
COMException(SerializationInfo info, StreamingContext context)
Definition
COMException.cs:35
System.Runtime.InteropServices.COMException.COMException
COMException()
Definition
COMException.cs:11
System.Runtime.InteropServices.COMException.ToString
override string ToString()
Definition
COMException.cs:40
System.Runtime.InteropServices.COMException.COMException
COMException(string? message, int errorCode)
Definition
COMException.cs:29
System.Runtime.InteropServices.COMException.COMException
COMException(string? message)
Definition
COMException.cs:17
System.Runtime.InteropServices.COMException
Definition
COMException.cs:10
System.Runtime.InteropServices.ExternalException
Definition
ExternalException.cs:9
System.Runtime.Serialization.SerializationInfo
Definition
SerializationInfo.cs:7
System.SR
Definition
SR.cs:7
System.Text.StringBuilder
Definition
StringBuilder.cs:14
System.Data.IsolationLevel.Serializable
@ Serializable
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System.Runtime.Serialization.CollectionKind.Dictionary
@ Dictionary
System.Runtime.Serialization
Definition
SerializationGuard.cs:3
System.Text
Definition
ConsoleEncoding.cs:1
System.ExceptionArgument.info
@ info
System.Runtime.Serialization.StreamingContext
Definition
StreamingContext.cs:6
System.Text.StringBuilder.AppendInterpolatedStringHandler.AppendLiteral
void AppendLiteral(string value)
Definition
StringBuilder.cs:137
System.Text.StringBuilder.AppendInterpolatedStringHandler.AppendFormatted
void AppendFormatted(ReadOnlySpan< char > value)
Definition
StringBuilder.cs:249
System.Text.StringBuilder.AppendInterpolatedStringHandler
Definition
StringBuilder.cs:116
source
System.Private.CoreLib
System.Runtime.InteropServices
COMException.cs
Generated by
1.10.0