TL;DR
Mods should be able to provide an exception handler and the game should have the option to ignore an exception instead of aborting the game.What ?
Mods should be able to provide an exception handler that gets called when an exception occurs. The handler should be able to return one of 4 values:1) Critical failure
The mod was unable to recover from the error and the game should abort like now.
2) Warning
The mod has probably recovered from the error but the game should show a pop-up about the error with the default to continue.
3) Retry
The mod has reset it's internal logic so the action causing the exception should be retried (e.g. events should be triggered again). A double failure is then critical. This could be rate limited, too, see 4.
4) Ignore
The mod doesn't have internal state that would break by ignoring an exception so the game should just continue anyway. If this happens too often, e.g. more than 10 times in a minute, the game should show the usual error pop-up.
On top of that the error pop-up should have more options. First there should be an option to save the game. On load the last LUA callback should be retried. This would often allow fixing the mod and continue the game without loosing everything since the last save. There should also be an ignore button that lets the game simply continue and maybe an option to remove the event handler that failed. While that would break functionality in many mods this would allow e.g. making a blueprint with the latest changes, reloading a save and reapplying all the work done since then. Or simply play on without the broken mod.
Why ?
With many mods interacting it is easy for errors to happen, especially on updates. It is annoying to loose all the work since the last autosave every time that happens. Looking at the mods source I often find that the error has no greater effect. E.g. I click on a button of the mod and the GUI fails to open. The only problem is that the GUI won't open. No need to abort the game. I can just not click the button and keep on playing for now. Or save the game, fix the mod and reload.While there are many cases where an error has follow up consequences or just will error again and again and again there are also many cases where it is perfectly save to just keep on playing or play with the mods functionality reduced. This should be a choice for the user.