MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / make_access_error

Function make_access_error

api/src/ErrorHandler.cpp:54–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void make_access_error(const std::string &obj_name, const std::string &var){
55 std::string s = "Runtime error: get_" + var + " called for ";
56 s += obj_name + " but " + "\"" + var + "\" not assigned\n";
57 throw std::runtime_error(s);
58}

Calls

no outgoing calls