MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / checkOutOfRange

Function checkOutOfRange

src/processor/result/flat_tuple.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27static void checkOutOfRange(idx_t idx, idx_t size) {
28 if (idx >= size) {
29 throw RuntimeException(std::format(
30 "ValIdx is out of range. Number of values in flatTuple: {}, valIdx: {}.", size, idx));
31 }
32}
33
34Value* FlatTuple::getValue(uint32_t idx) {
35 checkOutOfRange(idx, len());

Callers 2

getValueMethod · 0.85
flat_tuple.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected