Skip to content
Sharp

Exceptions · interview question

Which is a poor practice when dealing with exceptions in a checkout flow?

Multiple choiceHardchapter-6-curatedpremiumexceptionstry-catch-finally
Choose one answer
Answer and explanation

Correct answer

B. Catching generic 'Exception'

Why

Catching a generic 'Exception' can mask different types of errors that require different handling strategies, leading to poor diagnostics and error resolution in complex flows like checkout.

Test yourself on Exceptions

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

Start free test
All Exceptions questions →