cppcheck: (style) Exception should be caught by reference