Files
tysdk-intergration/sdk-intergration/LocalPackages/com.neuecc.unirx/Scripts/InternalUtil/ExceptionExtensions.cs
2024-08-02 20:09:59 +08:00

16 lines
318 B
C#

namespace UniRx.InternalUtil
{
using System;
internal static class ExceptionExtensions
{
public static void Throw(this Exception exception)
{
#if (NET_4_6 || NET_STANDARD_2_0)
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Capture(exception).Throw();
#endif
throw exception;
}
}
}