6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) + game logic (GameFix/GameDAL/ServerData) + network layer (NetWorkMessage) + data layer (ObjectModel) + utilities (MrWu/Core/Config/CloudAPI/dll) + adapters (zyxAdapter/base) .NET 8.0 C# solution, 16 projects, 958 source files
91 lines
2.5 KiB
C#
91 lines
2.5 KiB
C#
using System;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace Server.NativeCollection
|
|
{
|
|
internal static class ThrowHelper
|
|
{
|
|
//[DoesNotReturn]
|
|
public static void StackInitialCapacityException()
|
|
{
|
|
throw new ArgumentOutOfRangeException();
|
|
}
|
|
|
|
//[DoesNotReturn]
|
|
public static void StackEmptyException()
|
|
{
|
|
throw new InvalidOperationException("Stack Empty");
|
|
}
|
|
|
|
//[DoesNotReturn]
|
|
public static void QueueEmptyException()
|
|
{
|
|
throw new InvalidOperationException("EmptyQueue");
|
|
}
|
|
|
|
//[DoesNotReturn]
|
|
public static void ListInitialCapacityException()
|
|
{
|
|
throw new ArgumentOutOfRangeException();
|
|
}
|
|
|
|
//[DoesNotReturn]
|
|
public static void IndexMustBeLessException()
|
|
{
|
|
throw new ArgumentOutOfRangeException("IndexMustBeLess");
|
|
}
|
|
|
|
|
|
//[DoesNotReturn]
|
|
public static void ListSmallCapacity()
|
|
{
|
|
throw new ArgumentOutOfRangeException("SmallCapacity");
|
|
}
|
|
|
|
|
|
//[DoesNotReturn]
|
|
public static void ListIndexOutOfRange()
|
|
{
|
|
throw new ArgumentOutOfRangeException("ListIndexOutOfRange");
|
|
}
|
|
|
|
|
|
//[DoesNotReturn]
|
|
public static void ConcurrentOperationsNotSupported()
|
|
{
|
|
throw new InvalidOperationException("ConcurrentOperationsNotSupported");
|
|
}
|
|
|
|
//[DoesNotReturn]
|
|
public static void HashSetCapacityOutOfRange()
|
|
{
|
|
throw new ArgumentOutOfRangeException("HashSetCapacityOutOfRange");
|
|
}
|
|
|
|
//[DoesNotReturn]
|
|
public static void HashSetEnumFailedVersion()
|
|
{
|
|
throw new InvalidOperationException("EnumFailedVersion");
|
|
}
|
|
|
|
//[DoesNotReturn]
|
|
public static void HashSetEnumOpCantHappen()
|
|
{
|
|
throw new InvalidOperationException("EnumOpCantHappen");
|
|
}
|
|
|
|
//[DoesNotReturn]
|
|
public static void SortedSetVersionChanged()
|
|
{
|
|
throw new InvalidOperationException("_version != _tree.version");
|
|
}
|
|
|
|
//[DoesNotReturn]
|
|
public static void ThrowAddingDuplicateWithKeyArgumentException()
|
|
{
|
|
throw new ArgumentException("AddingDuplicateWithKey");
|
|
}
|
|
}
|
|
}
|
|
|