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

/gem5/ext/pybind11/tests/
H A Dtest_exceptions.cpp41 class MyException4 : public std::exception { class in inherits:std::exception
43 explicit MyException4(const char * m) : message{m} {} function in class:MyException4
96 // register new translator for MyException4
102 } catch (const MyException4 &e) {
115 m.def("throws4", []() { throw MyException4("this error is rethrown"); });

Completed in 4 milliseconds