MCPcopy Create free account
hub / github.com/pybind/pybind11 / register_exception_translator

Function register_exception_translator

include/pybind11/pybind11.h:3557–3564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3555}
3556
3557inline void register_exception_translator(ExceptionTranslator &&translator) {
3558 detail::with_exception_translators(
3559 [&](std::forward_list<ExceptionTranslator> &exception_translators,
3560 std::forward_list<ExceptionTranslator> &local_exception_translators) {
3561 (void) local_exception_translators;
3562 exception_translators.push_front(std::forward<ExceptionTranslator>(translator));
3563 });
3564}
3565
3566/**
3567 * Add a new module-local exception translator. Locally registered functions

Callers 2

TEST_SUBMODULEFunction · 0.85
PYBIND11_MODULEFunction · 0.85

Calls 1

Tested by 2

TEST_SUBMODULEFunction · 0.68
PYBIND11_MODULEFunction · 0.68