Campbell Ritchie wrote:It is difficult, as I said before, to advise you where to catch such exceptions.
Campbell Ritchie: I'm sorry for not mentioning it before, but you were right, of course. Thank you ;) .
I thought that it was easier to set some kind of rule to apply everywhere. But definitively handling exceptions depends on the context a lot. Checking my own code I've seen places where it's better to chain exceptions in the lowest private method, whereas in other places it makes more sense to do it one or two methods up.
I guess that a good clue to chain exceptions in private methods would be to do it
only in those places where you can add some kind of valuable information, relative to that context. If you can't, let the exception be handled upper.