(object sender, UnhandledExceptionEventArgs e)
| 132 | } |
| 133 | |
| 134 | private static void OnUnhandledException(object sender, UnhandledExceptionEventArgs e) |
| 135 | { |
| 136 | if (e.ExceptionObject is Exception exception) |
| 137 | { |
| 138 | Debug.LogError($"Unhandled Exception: {exception.Message}"); |
| 139 | Debug.LogException(exception); |
| 140 | //if (e.IsTerminating && !System.Diagnostics.Debugger.IsAttached) |
| 141 | // Platform.Fatal($"Unhandled Exception: {exception}"); |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | private static void OnUnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e) |
| 146 | { |
nothing calls this directly
no test coverage detected