Exception Handling Debate
This cluster centers on debates about the use, misuse, performance, and best practices of exceptions and try/catch mechanisms in programming languages for error handling.
Activity Over Time
Top Contributors
Keywords
Sample Comments
You don't have to try/catch everything.
If you allow exceptions, people try to catch them.
Tell me how an exception works. I’ve seen bugs caused by people not understanding the underlying mechanism. It doesn’t mean one shouldn’t use them.
Exceptions are the worst, except for any other way of handling errors.
You just need some exception handling in your life
"There is nothing exceptional in exceptions"No there's not, but it's a royal pain the arse to have to keep passing them up through your function calls to the level that actually cares about them and will do something about them. Try/catch eliminates boilerplate.
I don't get why every single exception must be catered for every single time.
You're not supposed to catch exceptions. They are not for handling logic. They're there to make fatal errors across threads and modules be safe and robust.
Exception is a nightmare only if you use it as a general purpose control flow mechanism.
I would say an exception is much more convenient. Buggy code that silently continues to run is very hard to debug!