From: <we...@in...> - 2003-02-05 15:24:19
|
Hello, > Other ideas/comments? in general i think: - Exception should only be used if some weird things happening and there is no developer possibility to avoid this, e.g. NullPointer, NumberFormat, IO - they should not be to specific, because this causes overhead - they are usefull, if different exceptions can occure and the developer wants to catch only a specific kind of exception. BUT it's not a good idea to use Exception in general as return value of methods if something weird is happening. Often a simple true/false will work. If the why 'failed this method' is important there exists still the logging with different modes. > Egon Regards, Joerg -- Dipl. Chem. Joerg K. Wegner Univ. Tuebingen, Computer Architecture, Sand 1, D-72076 Tuebingen, Germany Tel. (+49/0) 7071 29 78970, Fax (+49/0) 7071 29 5091 E-Mail: mailto:we...@in... WWW: http://www-ra.informatik.uni-tuebingen.de |