Replace custom exception by std::runtime_error