rethrowing of exception is good or bad
hi friends , Rethrowing of exception from one method of class A to the another method of Class B is good thing or bad.... can anyone tell me... thanks in advance
[168 byte] By [
83Krisha] at [2007-11-27 9:05:34]

> If you can't handle it (completely) or recover from> it, you should rethrow it and give higher levels the> chance to handle it.So it is better to handle it as early as possible, right?
No, it's better to handle it in the place where it makes sense to handle it. If you can't handle the errors, you pass it upwards or catch it, log a message and rethrow it.There's no One True Rule about it. It's up to the smart developer to know what to do.