01 // PROJECT AT A GLANCE
C++ POOL — DAY 14 AFTERNOON
C++Handling failures other than with return codes — on a Martian rover.
In C, a failing function returns an error code the caller is free to ignore. Exceptions invert the logic: the error travels up on its own to whoever knows how to handle it, and cannot be passed over in silence. The support is a space rover whose every vital component can break down.
A custom exception hierarchy and rover components (engine, oxygenator, water reclaimer, atmosphere regulator), with unit tests.
PRIMARYC++
DELIVERYTEAM RECORD
VERIFICATIONsuite provided by the subject
SOURCEINSPECTOR READY
03 // KEY OUTCOMES
- An error that can no longer be silently ignored
- Unit tests checking the failure cases, not only the nominal ones
04 // SOURCE TREE
READING SOURCE…