There are various reasons when we have to wrap java exceptions. Often those reasons are called: Checked Exceptions. According to the definition there are 2 types of exceptions:
The trouble with checked exceptions is that they discourage people from using exceptions. They encourage people to write try{ ... } catch blocks to please the compiler, then they forget to fill in the catch. They end up using return values for error handling instead of using exceptions.
Checked exceptions seemed like a good idea when I first started using Java, but they've warped the behavior of a generation of programmers.
Comments
jkirstein replied ago:
Checked exceptions are evil? I suppose runtime crashes are not...
paul_houle replied ago:
The trouble with checked exceptions is that they discourage people from using exceptions. They encourage people to write try{ ... } catch blocks to please the compiler, then they forget to fill in the catch. They end up using return values for error handling instead of using exceptions.
Checked exceptions seemed like a good idea when I first started using Java, but they've warped the behavior of a generation of programmers.
Voters For This Link (14)
Voters Against This Link (7)