I'd like to know if it is considered a good practice to catch different exceptions and rethrow them as a particular exception. For example, in the code below, I use a class that provides "data services" to the client. It has two constructors, one for local access, and one for remote access. The latter can throw 4 different types of exceptions, and I just rethrow them as my own exception class.
Is that a good design for this particular asignment? How about in general?
Thanks,
Eugene Kononov.