ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  What I Hate About Your Programming Language
Subject:   Java + Exceptions
Date:   2003-05-15 15:22:48
From:   anonymous2
Response to: Java + Exceptions

You are missing the point - a user should never see a stack trace. If you think missing the file is a good time to bail on the program than catch it and do a System.exit.


If you are selectivly able to ignore exceptions you wind up either missing important cases or writing catchal (like ... or Exception) and handling exceptions it a totaly wrong manener.


You should not be using exceptions to automagically end the program - that is the height of lazyness.


1 to 1 of 1
1 to 1 of 1