Link Details

Link 107169 thumbnail
User 205481 avatar

By adiian
via factorypattern.com
Published: Aug 27 2008 / 06:38

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:
  • 14
  • 7
  • 1104
  • 418

Comments

Add your comment
User 326209 avatar

jkirstein replied ago:

0 votes Vote down Vote up Reply

Checked exceptions are evil? I suppose runtime crashes are not...

User 281687 avatar

paul_houle replied ago:

0 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.