MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / raise_required_field_empty

Function raise_required_field_empty

src/exceptions.cxx:385–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385PyObject*
386raise_required_field_empty(PyObject* interned_key, const char* context, const char* file, int line)
387{
388 const char* key_name = PyUnicode_AsUTF8(interned_key);
389 std::string msg = "Required '";
390 msg += (key_name ? key_name : "unknown");
391 msg += "' field in ";
392 msg += context;
393 msg += " cannot be empty";
394 return raise_invalid_argument(msg.c_str(), file, line);
395}
396
397PyObject*
398raise_feature_unavailable(const char* message, const char* file, int line)

Callers

nothing calls this directly

Calls 1

raise_invalid_argumentFunction · 0.85

Tested by

no test coverage detected