How to expect the unexpected

1 · Fatih BAKIR · May 14, 2019, 7 a.m.
Although C++ has a sophisticated error handling mechanism, ie exceptions, in embedded domains they are usually disabled due to code size spent on jump table sizes with zero overhead exceptions or the runtime overhead in other implementations. And in projects they are enabled, their use is usually frowned upon due to the extreme costs of throwing an exception. It’s said that you should only throw an exception in exceptional situations, though what constitutes an exceptional situation is not well ...