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

19 lines
610 B
C#

using System;
namespace Cysharp.Text
{
// Currently, this class is internals.
internal class NestedStringBuilderCreationException : InvalidOperationException
{
internal protected NestedStringBuilderCreationException(string typeName, string extraMessage = "")
: base($"A nested call with `notNested: true`, or Either You forgot to call {typeName}.Dispose() of in the past.{extraMessage}")
{
}
internal protected NestedStringBuilderCreationException(string message, Exception innerException) : base(message, innerException)
{
}
}
}