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

Function create_pycbc_exception

src/exceptions.cxx:271–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271pycbc_exception*
272create_pycbc_exception()
273{
274 PyObject* exc = PyObject_CallObject((PyObject*)get_pycbc_exception_type(), nullptr);
275 if (exc == nullptr) {
276 // Python error already set by PyObject_CallObject
277 return nullptr;
278 }
279 return reinterpret_cast<pycbc_exception*>(exc);
280}
281
282PyObject*
283build_exception(const std::error_code& ec, const char* file, int line, const char* message)

Callers 2

build_exceptionFunction · 0.85

Calls 1

get_pycbc_exception_typeFunction · 0.85

Tested by

no test coverage detected