ExceptionHelper.cs 282 B

1234567891011121314151617
  1. using System;
  2. using ETModel;
  3. namespace ETHotfix
  4. {
  5. public static class ExceptionHelper
  6. {
  7. public static string ToStr(this Exception exception)
  8. {
  9. #if ILRuntime
  10. return $"{exception.Data["StackTrace"]} \n\n {exception}";
  11. #else
  12. return exception.ToString();
  13. #endif
  14. }
  15. }
  16. }