how to delegate on static method
Hi, I want to delegate from a static method to delegate trapped exceptions from Godot.
By nature, all un-caught exceptions from this block are caught inside Godot and only logged at the end.
So I want to delegate from
The method signature is.
Currently I'm using a hook to work with
Here the actual code of my hook https://github.com/MikeSchulze/gdUnit4Net/blob/master/api/src/core/hooks/GodotExceptionHook.cs
Any ideas?
By nature, all un-caught exceptions from this block are caught inside Godot and only logged at the end.
So I want to delegate from
ExceptionUtils.LogException(ex); to my own handler to get the exceptions. I have tried a lot, but to no avail.The method signature is.
Currently I'm using a hook to work with
AppDomain.CurrentDomain.FirstChanceException , but I only want to catch exceptions from the original Godot catch block.Here the actual code of my hook https://github.com/MikeSchulze/gdUnit4Net/blob/master/api/src/core/hooks/GodotExceptionHook.cs
Any ideas?
GitHub
A Godot C# Unit Test Framework. Contribute to MikeSchulze/gdUnit4Net development by creating an account on GitHub.