Searched refs:value_error (Results 1 – 11 of 11) sorted by relevance
68 except ValueError as value_error:72 raise ZipError(msg) from value_error
51 | :class:`pybind11::value_error` | ``ValueError`` (used to indicate |216 } catch (py::value_error &boromir) {225 // py::value_error is a request for pybind11 to raise a Python exception226 throw py::value_error("The ball");229 // py::value_error is not a Python exception231 } catch (py::value_error &dog) {284 :class:`pybind11::value_error` are *not* Python exceptions; they are C++
46 pybind11::value_error( in PYBIND11_MODULE()
30 m.def("throw_pybind_value_error", []() { throw py::value_error("pybind11 value error"); }); in PYBIND11_MODULE()
37 throw py::value_error("Please provide at least 5 elements for testing."); in test_random_access_iterator()
37 throw py::value_error(tensorflow::strings::Printf( in PYBIND11_MODULE()
174 Status value_error; in WriteFunctionArguments() local
1377 throw value_error("Cannot convert None to a character");1382 throw value_error("Cannot convert empty string to a character");1403 throw value_error("Character code point not in range(0x100)");1413 throw value_error("Character code point not in range(0x10000)");1417 throw value_error("Expected a character, but multi-character string found");
93 throw value_error();
1747 … throw value_error(type_name + ": element \"" + std::string(name_) + "\" already exists!");
726 PYBIND11_RUNTIME_EXCEPTION(value_error, PyExc_ValueError)