>
>> Well I think only Exception could be the only case needed. However,
>> catching generic Exception means any error, a specific Exception
>> caught is better.
>
> The other odd thing is that it catches the checked exception and wraps it in
> a runtime exception. This strikes me as a poor practice.
>
>> BTW, the catch(Error e) {} stuff has been caught by IntelliJ Inspections.
>>
>> Just one more thing that I noted in the class, there are no log
>> statements. Dom't we need them?
>
> I'm against logging exceptions if we're re-throwing them unless we print out
> some critical piece of information that cannot be discerned by any other
> method. I say this from experience where I had to slog through millions of
> log statements generated by one exception where every well meaning layer
> printed something out.
Alan, my comment was in general, not specific to Exception clause :-)
The class doesn't have logging at all :-(
>
> Regards,
> Alan
>
>
--
thanks
ashish
Blog: http://www.ashishpaliwal.com/blog
My Photo Galleries: http://www.pbase.com/ashishpaliwal