| 369 | } |
| 370 | |
| 371 | PyObject* |
| 372 | raise_required_field_missing(PyObject* interned_key, |
| 373 | const char* context, |
| 374 | const char* file, |
| 375 | int line) |
| 376 | { |
| 377 | const char* key_name = PyUnicode_AsUTF8(interned_key); |
| 378 | std::string msg = "Missing required '"; |
| 379 | msg += (key_name ? key_name : "unknown"); |
| 380 | msg += "' field in "; |
| 381 | msg += context; |
| 382 | return raise_invalid_argument(msg.c_str(), file, line); |
| 383 | } |
| 384 | |
| 385 | PyObject* |
| 386 | raise_required_field_empty(PyObject* interned_key, const char* context, const char* file, int line) |
nothing calls this directly
no test coverage detected