MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / CheckCAPIError

Function CheckCAPIError

python/mod_cvcuda/include/nvcv/python/CAPI.hpp:105–112  ·  view source on GitHub ↗

Check for an error inside the CAPI, since exceptions cannot cross the C api * boundary, this must be called to make sure en exception was not converted to * a PyErr */

Source from the content-addressed store, hash-verified

103 * a PyErr
104 */
105inline void CheckCAPIError()
106{
107 if (PyErr_Occurred())
108 {
109 // Propagate the exception to Python
110 throw pybind11::error_already_set();
111 }
112};
113
114template<class T>
115decltype(auto) CheckCAPIError(T &&arg)

Callers 15

addMethod · 0.85
fetchMethod · 0.85
CreateMethod · 0.85
ArrayMethod · 0.85
CreateMethod · 0.85
ImageMethod · 0.85
ContainerMethod · 0.85
loadMethod · 0.85
castMethod · 0.85
CurrentMethod · 0.85
cudaHandleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected