Follow the Crashes
medium · 150 XP · flag · free · solves: 1
Alex opened the app's flag check expecting a few ordinary if and else statements. Instead, every decision had been turned into an exception. The code threw errors on purpose and caught them in a maze of custom handlers, so the real path jumped from one crash to the next. A debugger made it look like the program was failing constantly. But every deliberate crash landed somewhere specific, and together they spelled out the real logic. Can you chase each exception to where it lands and rebuild the check?
In this challenge, standard conditional branching (`if`/`else` control flow) in the flag verification method has been transformed into `throw`/`catch` exception handlers across a custom exception hierarchy (`BranchExceptions`).
Tags: Mobile
Try next
- The Loader's Shadow (easy)
- The World Just So (medium)
- The Wrong Order Wins (medium)