1
0

ExceptionExtensions.cs 318 B

123456789101112131415
  1. namespace UniRx.InternalUtil
  2. {
  3. using System;
  4. internal static class ExceptionExtensions
  5. {
  6. public static void Throw(this Exception exception)
  7. {
  8. #if (NET_4_6 || NET_STANDARD_2_0)
  9. System.Runtime.ExceptionServices.ExceptionDispatchInfo.Capture(exception).Throw();
  10. #endif
  11. throw exception;
  12. }
  13. }
  14. }