MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / format_error

Function format_error

crates/bindings-cpp/include/spacetimedb/table.h:135–139  ·  view source on GitHub ↗

Error handling utilities

Source from the content-addressed store, hash-verified

133
134 // Error handling utilities
135 inline std::string format_error(const std::string& context,
136 const std::string& operation,
137 int code) {
138 return context + ": " + operation + " failed with code " + std::to_string(code);
139 }
140
141 inline void check_buffer_size(size_t size) {
142 if (size > MAX_ROW_BUFFER_SIZE) {

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…