MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / JSON_CATCH

Function JSON_CATCH

Source/Utils/json.hpp:19801–19805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19799 return m_value.array->at(idx);
19800 }
19801 JSON_CATCH(std::out_of_range&)
19802 {
19803 // create better exception explanation
19804 JSON_THROW(out_of_range::create(401, "array index " + std::to_string(idx) + " is out of range"));
19805 }
19806 }
19807 else
19808 {

Callers

nothing calls this directly

Calls 1

createFunction · 0.85

Tested by

no test coverage detected