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

/gem5/ext/pybind11/tests/
H A Dtest_exceptions.cpp22 class MyException2 : public std::exception { class in inherits:std::exception
24 explicit MyException2(const char * m) : message{m} {} function in class:MyException2
84 // register new translator for MyException2
90 } catch (const MyException2 &e) {
113 m.def("throws2", []() { throw MyException2("this error should go to a standard Python exception"); });

Completed in 4 milliseconds