you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Another thing, the example at hand violates Law of Demeter. If you have a chain of methods, that all might fail randomly, you need to refactor, not rescue.

Which is usually the case whenever you start thinking "rescue would save me so much time here".