Searched refs:translator (Results 1 - 1 of 1) sorted by relevance

/gem5/ext/pybind11/include/pybind11/
H A Dpybind11.h676 translator a chance to translate it to a Python exception
679 A translator may choose to do one of the following:
683 - do nothing and let the exception fall through to the next translator, or
684 - delegate translation to the next translator by throwing a new type of exception. */
688 for (auto& translator : registered_exception_translators) {
690 translator(last_exception);
697 PyErr_SetString(PyExc_SystemError, "Exception escaped from default exception translator!");
1766 void register_exception_translator(ExceptionTranslator&& translator) { argument
1768 std::forward<ExceptionTranslator>(translator));
1807 * Registers a Python exception in `m` of the given `name` and installs an exception translator t
[all...]

Completed in 11 milliseconds