Women in Technology

Hear us Roar



Article:
  What I Hate About Your Programming Language
Subject:   Java: Catch all exceptions?
Date:   2003-05-13 17:19:41
From:   anonymous2
Response to: Java: Catch all exceptions?

I think the language designers wanted you to make throwing the exception part of the interface of your own function. If someone calling your function doesn't know how you implemented it, how do they know they should check for a HashTableSober exception, or somesuch? The client code shouldn't crash because of something it wasn't informed of.


I think that's the idea, anyway. In practice, implied "throws" would make life more convenient.


Grant_Watson on Slashdot