option 1 is fine. The fact that some lines are not thrown does not matter. To get started, just take a look at the code, it looks clearer. No punch
you will nevertheless lecture on indiscriminately using all exceptions and ignoring them
This is the type of mismatch that you get when moving from a code layer that uses exceptions (or even hugs them), and a layer that doesn't. It seems that the layer above you does not like exceptions and that the layer below. Is there a reason that above the level you do not like exceptions. What happens if you need to explain the layer above why statement 3 failed. You must write a terrible exception to return code conversion functions.
pm100 source share