Home
last modified time | relevance | path

Searched refs:LocalSimpleException (Results 1 – 8 of 8) sorted by relevance

/dports/devel/pybind11/pybind11-2.8.1/tests/
H A Dlocal_bindings.h49 class LocalSimpleException : public std::exception {
51 explicit LocalSimpleException(const char * m) : message{m} {} in LocalSimpleException() function
H A Dpybind11_cross_module_tests.cpp32 py::register_local_exception<LocalSimpleException>(m, "LocalSimpleException"); in PYBIND11_MODULE()
39 m.def("throw_local_simple_error", []() { throw LocalSimpleException("external mod"); }); in PYBIND11_MODULE()
H A Dtest_exceptions.py63 with pytest.raises(cm.LocalSimpleException) as excinfo:
264 assert not isinstance(excinfo.value, cm.LocalSimpleException)
H A Dtest_exceptions.cpp175 m.def("throws_local_simple_error", []() { throw LocalSimpleException("this mod"); }); in TEST_SUBMODULE()
/dports/science/smoldyn/smoldyn-2.67/source/pybind11/tests/
H A Dlocal_bindings.h49 class LocalSimpleException : public std::exception {
51 explicit LocalSimpleException(const char * m) : message{m} {} in LocalSimpleException() function
H A Dpybind11_cross_module_tests.cpp32 py::register_local_exception<LocalSimpleException>(m, "LocalSimpleException"); in PYBIND11_MODULE()
39 m.def("throw_local_simple_error", []() { throw LocalSimpleException("external mod"); }); in PYBIND11_MODULE()
H A Dtest_exceptions.py63 with pytest.raises(cm.LocalSimpleException) as excinfo:
264 assert not isinstance(excinfo.value, cm.LocalSimpleException)
H A Dtest_exceptions.cpp175 m.def("throws_local_simple_error", []() { throw LocalSimpleException("this mod"); }); in TEST_SUBMODULE()