MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnUnhandledException

Method OnUnhandledException

Source/Engine/Scripting/Scripting.cs:134–143  ·  view source on GitHub ↗
(object sender, UnhandledExceptionEventArgs e)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

LogErrorMethod · 0.45
LogExceptionMethod · 0.45

Tested by

no test coverage detected