Skip to content
Sharp

Exceptions · interview question

A teammate submits shaky error translation code. Which review comment is the strongest?

Multiple choiceHardchapter-5-curatedpremiumexceptionserror-translation
Choose one answer
Answer and explanation

Correct answer

B. Make the rule clearer and easier to explain. Convert low-level failures into boundary-appropriate messages where callers genuinely need a different contract.

Why

The best review comment anchors the change to readability, correctness, and future maintenance. Translating too early disconnects the caller from the technical clue, while translating too late leaks infrastructure details upward.

Test yourself on Exceptions

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

Start free test
All Exceptions questions →