Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ErrorWrapper.cs
Go to the documentation of this file.
1
namespace
System.Runtime.InteropServices
;
2
3
public
sealed
class
ErrorWrapper
4
{
5
public
int
ErrorCode
{
get
; }
6
7
public
ErrorWrapper
(
int
errorCode)
8
{
9
ErrorCode
= errorCode;
10
}
11
12
public
ErrorWrapper
(
object
errorCode)
13
{
14
if
(!(errorCode is
int
))
15
{
16
throw
new
ArgumentException
(
SR
.
Arg_MustBeInt32
,
"errorCode"
);
17
}
18
ErrorCode
= (int)errorCode;
19
}
20
21
public
ErrorWrapper
(
Exception
e)
22
{
23
ErrorCode
=
Marshal
.
GetHRForException
(e);
24
}
25
}
System.ArgumentException
Definition
ArgumentException.cs:9
System.Exception
Definition
Exception.cs:15
System.Runtime.InteropServices.ErrorWrapper.ErrorWrapper
ErrorWrapper(int errorCode)
Definition
ErrorWrapper.cs:7
System.Runtime.InteropServices.ErrorWrapper.ErrorWrapper
ErrorWrapper(object errorCode)
Definition
ErrorWrapper.cs:12
System.Runtime.InteropServices.ErrorWrapper.ErrorCode
int ErrorCode
Definition
ErrorWrapper.cs:5
System.Runtime.InteropServices.ErrorWrapper.ErrorWrapper
ErrorWrapper(Exception e)
Definition
ErrorWrapper.cs:21
System.Runtime.InteropServices.ErrorWrapper
Definition
ErrorWrapper.cs:4
System.Runtime.InteropServices.Marshal.GetHRForException
static int GetHRForException(Exception? e)
System.Runtime.InteropServices.Marshal
Definition
Marshal.cs:14
System.SR.Arg_MustBeInt32
static string Arg_MustBeInt32
Definition
SR.cs:282
System.SR
Definition
SR.cs:7
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
source
System.Private.CoreLib
System.Runtime.InteropServices
ErrorWrapper.cs
Generated by
1.10.0