Ltd. First of all, try...catch blocks get tangled up all over the place. Otherwise, the unconditional catch clause will intercept all types of exception before they can reach the conditional ones. If you know there is no way to continue with the algorithm upon failure it might be better to wrap the whole thing in a try/catch because if your try/catch is More about the author
Lot's of syntactic advice around, but like you say that's the easy part. In this case, the appropriate catch clause is entered when the specified exception is thrown. lineNumber Optional. The finally statement lets you execute code, after try and catch, regardless of the result.