Allow functions constructors to throw a std::runtime_error.