using System; namespace Godot { public static partial class GD { /// /// Fires when an unhandled exception occurs, regardless of project settings. /// public static event EventHandler UnhandledException; private static void OnUnhandledException(Exception e) { UnhandledException?.Invoke(null, new UnhandledExceptionArgs(e)); } } }