com.alicizax.unity.cysharp..../NestedStringBuilderCreationException.cs

19 lines
610 B
C#
Raw Normal View History

2025-01-09 13:57:51 +08:00
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)
{
}
}
}