Hmmm I see. What about making the method that has this constructor just throw the exception? If the server cannot be constructed properly it should be something that should interrupt what ever is trying to start it up no?
Another thing is that we may not need to throw this exception. I have a feeling it will never really be thrown since the bootstrap schemas are always packaged and will always load. This is afterall what is now happing in the constructor which requires this new exception. So I guess we can wrap it in an IllegalStateException since if it bombs something is messed up with the packaging.
Alex Karasulu wrote:It's not bad by essence. It just palin hurts when you have to create new
> Why is it bad to have a checked exception in the throws clause of a
instances in thousands places in the code :
ServerEntry entry = null;
entry = new DefaultServerEntry( <params> );
catch ( WhateverCheckedException wce )
LOG.error ( "Why the HELL do I have to catch errors when creating a
new object everywhere ???" );
instead of :
ServerEntry entry = new DefaultServerentry( <params> ); // I _know_ what
I'm doing !!! params *are* valid, for G*d sake !
IMHO, of course :)
> cordialement, regards,
> Emmanuel Lécharny
> www.iktek.com < http://www.iktek.com>
> directory.apache.org <http://directory.apache.org>