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

/gem5/ext/pybind11/tests/
H A Dtest_exceptions.cpp125 catch (py::error_already_set& ex) {
137 catch (py::error_already_set &ex) {
148 catch (py::error_already_set &ex) {
159 throw py::error_already_set();
171 throw py::error_already_set();
178 throw py::error_already_set();
179 } catch (const py::error_already_set&) {
188 catch (py::error_already_set &ex) {
H A Dtest_eval.cpp77 } catch (py::error_already_set &) {
H A Dpybind11_cross_module_tests.cpp28 m.def("raise_runtime_error", []() { PyErr_SetString(PyExc_RuntimeError, "My runtime error"); throw py::error_already_set(); });
29 m.def("raise_value_error", []() { PyErr_SetString(PyExc_ValueError, "My value error"); throw py::error_already_set(); });
H A Dtest_sequences_and_iterators.cpp40 if (result == -1) { throw py::error_already_set(); }
86 throw py::error_already_set();
200 throw py::error_already_set();
210 throw py::error_already_set();
H A Dtest_pytypes.cpp131 } catch (const py::error_already_set &) {
136 } catch (const py::error_already_set &) {
157 } catch (const py::error_already_set &) {
H A Dconstructor_stats.h120 throw py::error_already_set();
/gem5/ext/pybind11/include/pybind11/
H A Dpytypes.h105 call fails, a `error_already_set` exception is thrown.
322 class error_already_set : public std::runtime_error { class in inherits:std::runtime_error
326 error_already_set() : std::runtime_error(detail::error_string()) { function in class:error_already_set
330 error_already_set(const error_already_set &) = default;
331 error_already_set(error_already_set &&) = default;
333 inline ~error_already_set();
341 PYBIND11_DEPRECATED("Use of error_already_set.clear() is deprecated")
381 throw error_already_set();
[all...]
H A Deval.h48 throw error_already_set();
113 throw error_already_set();
H A Dembed.h53 } catch (pybind11::error_already_set &e) { \
H A Dstl_bind.h217 throw error_already_set();
236 throw error_already_set();
262 throw error_already_set();
H A Dpybind11.h667 } catch (error_already_set &e) {
847 /// Import and return a module or throws `error_already_set`.
851 throw error_already_set();
855 /// Reload the module or throws `error_already_set`.
859 throw error_already_set();
1845 } catch (const error_already_set &) {
2014 error_already_set::~error_already_set() {
2072 throw error_already_set();
H A Dcast.h1219 if (!s) throw error_already_set();
1301 if (!s) throw error_already_set();
1959 throw error_already_set();
1992 throw error_already_set();
H A Dnumpy.h473 throw error_already_set();
580 throw error_already_set();
755 if (!new_array) throw error_already_set();
853 if (!m_ptr) throw error_already_set();
H A Deigen.h559 } catch (const error_already_set &) {
/gem5/ext/pybind11/include/pybind11/detail/
H A Dinternals.h206 } catch (error_already_set &e) { e.restore(); return;
225 } catch (error_already_set &e) { e.restore(); return;
250 // We loaded builtins through python's builtins, which means that our `error_already_set`
H A Dclass.h99 throw error_already_set();
H A Dcommon.h232 catch (pybind11::error_already_set &e) { \

Completed in 55 milliseconds