I think it's simpler than this : the catch statement should just be at the end of the method rather than just after the line.