Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ExceptionUtilities.cs
Go to the documentation of this file.
1
namespace
System.Reflection.Internal
;
2
3
internal
static
class
ExceptionUtilities
4
{
5
internal
static
Exception
Unreachable
=>
new
InvalidOperationException
(
System
.
SR
.
UnreachableLocation
);
6
7
internal
static
Exception
UnexpectedValue
(
object
value
)
8
{
9
if
(
value
!=
null
&&
value
.GetType().FullName !=
null
)
10
{
11
return
new
InvalidOperationException
(
System
.
SR
.
Format
(
System
.
SR
.
UnexpectedValue
,
value
,
value
.GetType().FullName));
12
}
13
return
new
InvalidOperationException
(
System
.
SR
.
Format
(
System
.
SR
.
UnexpectedValueUnknownType
,
value
));
14
}
15
}
System.Exception
Definition
Exception.cs:15
System.InvalidOperationException
Definition
InvalidOperationException.cs:9
System.Reflection.Internal.ExceptionUtilities.Unreachable
static Exception Unreachable
Definition
ExceptionUtilities.cs:5
System.Reflection.Internal.ExceptionUtilities.UnexpectedValue
static Exception UnexpectedValue(object value)
Definition
ExceptionUtilities.cs:7
System.Reflection.Internal.ExceptionUtilities
Definition
ExceptionUtilities.cs:4
System.SR.UnexpectedValueUnknownType
static string UnexpectedValueUnknownType
Definition
SR.cs:244
System.SR.Format
static string Format(string resourceFormat, object p1)
Definition
SR.cs:118
System.SR.UnreachableLocation
static string UnreachableLocation
Definition
SR.cs:246
System.SR.UnexpectedValue
static string UnexpectedValue
Definition
SR.cs:242
System.SR
Definition
SR.cs:7
System.Reflection.Internal
Definition
AbstractMemoryBlock.cs:4
System.ExceptionArgument.value
@ value
System
Definition
BlockingCollection.cs:8
source
System.Reflection.Metadata
System.Reflection.Internal
ExceptionUtilities.cs
Generated by
1.10.0