From: Egon W. <eg...@us...> - 2004-11-26 21:16:46
|
On Thursday 25 November 2004 11:51, Kai Hartmann wrote: > > some long time ago 'we', i.e. the project, decided that we should only > > use CDKException, and not subclasses of this exception... > > Is there a log of the discussion that has leaded to this decision? I > don't want to go all over it again. Maybe someone can provide links? No, don't think so... > The obvious advantage of the current approach is quicker development (no > extra exception classes, no long lists of thrown exceptions for each > method). A method does not need to throw more than one CDKException... i.e. if they are properly subclassing that class... > > However, I've experienced this as a burden, more than that it reduced > > complexity in the system. It would be easier to trace a problem if we > > would use subclassed CDKExceptions, because the Exception class name is > > prominent in the stacktrace, and handling exception in source code is > > much more specific... > > That's a PRO Christoph, what do you think? Egon -- eg...@us... GPG: 1024D/D6336BA6 |