Women in Technology

Hear us Roar



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.

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Java + Exceptions
    2003-05-15 15:40:59  chromatic | O'Reilly AuthorO'Reilly Blogger [View]

    No.

    All I'm saying is that sometimes I don't consider certain things exceptional. Java won't let me ignore them. I either have to deal with the exception or let it crash.

    I don't like either option. If I know the file's not likely to be there and my program isn't going to crash if it's not there, it's not an exceptional condition. Why do I have to do busywork to make my intent clear?