MCPcopy Create free account
hub / github.com/pybind/pybind11 / throw_runtime_error

Method throw_runtime_error

tests/test_buffers.cpp:292–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290 public:
291 BrokenMatrix(py::ssize_t rows, py::ssize_t cols) : Matrix(rows, cols) {}
292 void throw_runtime_error() { throw std::runtime_error("See PR #5324 for context."); }
293 };
294 py::class_<BrokenMatrix>(m, "BrokenMatrix", py::buffer_protocol())
295 .def(py::init<py::ssize_t, py::ssize_t>())

Callers 1

TEST_SUBMODULEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected