Home
last modified time | relevance | path

Searched refs:MyException5 (Results 1 – 2 of 2) sorted by relevance

/external/python/pybind11/tests/
Dtest_exceptions.py130 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:
Dtest_exceptions.cpp58 class MyException5 : public std::logic_error { class
60 explicit MyException5(const std::string &what) : std::logic_error(what) {} in MyException5() function in MyException5
64 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()