Searched refs:MyException5 (Results 1 – 2 of 2) sorted by relevance
130 with pytest.raises(m.MyException5) as excinfo:135 with pytest.raises(m.MyException5) as excinfo:144 with pytest.raises(m.MyException5) as excinfo:159 raise m.MyException5("nested error 5")165 m.try_catch(m.MyException5, throw_myex5)170 m.try_catch(m.MyException5, throw_myex)182 m.MyException5,193 m.try_catch(m.MyException, pycatch, m.MyException5, m.throws4)197 with pytest.raises(m.MyException5) as excinfo:
58 class MyException5 : public std::logic_error { class60 explicit MyException5(const std::string &what) : std::logic_error(what) {} in MyException5() function in MyException564 class MyException5_1 : public MyException5 {65 using MyException5::MyException5;134 auto ex5 = py::register_exception<MyException5>(m, "MyException5"); in TEST_SUBMODULE()142 m.def("throws5", []() { throw MyException5("this is a helper-defined translated exception"); }); in TEST_SUBMODULE()