Skip to content
Sharp

Exceptions · interview question

A teammate submits shaky raising exceptions code. Which review comment is the strongest?

Multiple choiceEasychapter-5-curatedpremiumexceptionsraising-exceptions
Choose one answer
Answer and explanation

Correct answer

D. Make the rule clearer and easier to explain. Raise an exception when the current layer can no longer honestly continue with valid state.

Why

The best review comment anchors the change to readability, correctness, and future maintenance. Delaying a broken invariant usually spreads bad data and hides the original mistake.

Test yourself on Exceptions

A free test with instant, explained results. No account needed.

Start free test
All Exceptions questions →