Comment by throwaway173738
15 hours ago
Sure, in a desktop program you do. In embedded exceptions are a scourge because they crash your program until someone can get back out there to power cycle it. At least with return-codes you can continue execution even if you failed to effect the change you wanted. If that was ancillary to the system’s core function then the system keeps running.
Pretty sure esp32 just rebooted automatically when unhandled exception is thrown for instance