godot/modules/mono/glue/GodotSharp/GodotSharp/Core/GodotUnhandledExceptionEven...

18 lines
458 B
C#

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