Files
M-Gameton-06/Gameton-06/Assets/Plugins/UniRx/Scripts/InternalUtil/ExceptionExtensions.cs
2025-06-02 00:27:36 +09: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;
}
}
}