r-lib / cpp11

cpp11 helps you to interact with R objects using C++ code.
https://cpp11.r-lib.org/
Other
199 stars 46 forks source link

classed errors in `cpp11::stop()` #250

Open romainfrancois opened 2 years ago

romainfrancois commented 2 years ago

From https://github.com/apache/arrow/pull/11534#issuecomment-965458681

jimhester commented 2 years ago

For future selves:

There is some code in fs to construct the error object with custom classes (https://github.com/r-lib/fs/blob/main/src/error.cc#L5), likely something in rlang and elsewhere as well.