Misunderstanding Exceptions
It is funny how people think that the important thing about exceptions is handling them. That is not the important thing about exceptions. In a well-written application there’s a ratio of ten to one, in my opinion, of try finally to try catch. - Anders Hejlsberg, designer of Turbo Pascal, Delphi, and C#
found on apenwarr
This apply particulariy to Java checked exception, and is amplified when using lambda:
- The Trouble with Checked Exceptions
- Exceptions in Java 8 Lambda Expressions
- How to Handle Checked Exceptions With Lambda Expression
see also
- Exploring the ways different languages handle errors
- exception
- sum Types (value or error info) (rust / zig)
- sentinel values (C)
- Error as a value (go)
Written on September 14, 2019, Last update on April 26, 2026
error-handling
lang
java
exception
c++