com.alicizax.unity.cysharp..../ExceptionUtil.cs
陈思海 4fbea560b5 init
2025-01-09 13:57:51 +08:00

25 lines
688 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Cysharp.Text
{
internal static class ExceptionUtil
{
internal static void ThrowArgumentException(string paramName)
{
throw new ArgumentException("Can't format argument.", paramName);
}
internal static void ThrowFormatException()
{
throw new FormatException("Index (zero based) must be greater than or equal to zero and less than the size of the argument list.");
}
internal static void ThrowFormatError()
{
throw new FormatException("Input string was not in a correct format.");
}
}
}