Changes throw char* to throw std::runtime_error