DEV Community

Cover image for Return Code vs Exceptions: Which One is Better for Error Handling?
Alper Ebiçoğlu
Alper Ebiçoğlu

Posted on

Return Code vs Exceptions: Which One is Better for Error Handling?

Every dev’s faced it — do you go old-school with return codes or embrace the modern chaos of exceptions? 😅
In this post, we break down both sides: performance, readability, real-world use, and where each truly shines (or fails miserably).

👉 Read now and decide which camp you belong to: return -1; or throw new Exception()?

Read my latest article:

abp.io/community/articles/return-code-vs-exceptions-which-one-is-better-1rwcu9yi

Top comments (0)