This is the Structured Exception Handling a.k.a SEH that I manually implemented in Delphi.
I used this SEH to avoid BSOD in many kernel driver projects.
uses VICSEH;
{$I VIC.TRY}
// YOUR CODE HERE THAT WANT TO TRY CATCH EXCEPTION HERE
{$I VIC.EXCEPT}
Website: https://vic.onl/