Open rlratzel opened 1 year ago
We discussed this briefly. There are, potentially, two issues here and I want to make sure we distinguish them.
CUGRAPH_UNKNOWN_ERROR
(as in this specific example). We should start making a list of CUGRAPH_UNKNOWN_ERROR
situations that come up and identify where we might want additional error checks/error return codes in the C API. If there are situations that come up that can have special handling in the python layer they should definitely be returned as a specific error to make that easier. This, I believe, should be outside of the scope of this issue.
PR #3533 enables additional checks in the C++ library which may result in errors being returned to pylibcugraph. pylibcugraph currently is not checking for these errors, and the uncaught exception from C++ results in a crash with a stack trace from C++, showing the following:
Instead, pylibcugraph should catch exceptions and/or check all error codes from the C API and raise appropriate exceptions.