Replace use of C++ keyword 'throw'