MCPcopy Create free account
hub / github.com/BayshoreNetworks/yextend / JSON_CATCH

Function JSON_CATCH

libs/json.hpp:9890–9894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9888 return m_value.array->at(idx);
9889 }
9890 JSON_CATCH (std::out_of_range&)
9891 {
9892 // create better exception explanation
9893 JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range"));
9894 }
9895 }
9896 else
9897 {

Callers 1

json.hppFile · 0.85

Calls 1

createFunction · 0.85

Tested by

no test coverage detected