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

Function pycbc_exception__strerror__

src/exceptions.cxx:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94static PyObject*
95pycbc_exception__strerror__(pycbc_exception* self, PyObject* Py_UNUSED(ignored))
96{
97 if (!self->message.empty()) {
98 return PyUnicode_FromString(self->message.c_str());
99 }
100 return PyUnicode_FromString(self->ec.message().c_str());
101}
102
103static PyObject*
104pycbc_exception__error_context__(pycbc_exception* self, PyObject* Py_UNUSED(ignored))

Callers

nothing calls this directly

Calls 1

messageMethod · 0.45

Tested by

no test coverage detected