39 Commits (4dc4aca2e120180e6bb48c076986feff41b4f5fb)

Author SHA1 Message Date
vfdev 1d9483ff73
Added exception translator specific mutex used with try_translate_exceptions (#5362) 10 months ago
Ralf W. Grosse-Kunstleve 0efff79f01
Bug fixes: Add missing `handle_type_name` specializations. (#5073) 1 year ago
Ralf W. Grosse-Kunstleve 0e2c3e5db4
Add pybind11/gil_safe_call_once.h (to fix deadlocks in pybind11/numpy.h) (#4877) 2 years ago
Ralf W. Grosse-Kunstleve 690a115d84
Add `py::set_error()`, use in updated `py::exception<>` documentation (#4772) 2 years ago
Dustin Spicuzza 8dcced29ae
Always display python type information in cast errors (#4463) 2 years ago
Ralf W. Grosse-Kunstleve 3a2c96bd6f
fix: unicode surrogate character in Python exception message. (#4297) 3 years ago
Ralf W. Grosse-Kunstleve cb35a3c143
For PyPy only, re-enable old behavior (runs the risk of masking bugs) (#4079) 3 years ago
Sergei Lebedev a05bc3d235
error_already_set::what() is now constructed lazily (#1895) 3 years ago
Ralf W. Grosse-Kunstleve b24c5ed204
Replace "Unknown internal error occurred" with a more helpful message. (#3982) 3 years ago
Ralf W. Grosse-Kunstleve de4ba92c9f
Add `error_scope` to `detail::get_internals()` (#3981) 3 years ago
Ralf W. Grosse-Kunstleve 2c549eb7aa
Move `PyErr_NormalizeException()` up a few lines (#3971) 3 years ago
Ralf W. Grosse-Kunstleve 6493f496e3
Python 2 removal part 1: tests (C++ code is intentionally ~untouched) (#3688) 3 years ago
Ralf W. Grosse-Kunstleve ec24786eab
Fully-automatic clang-format with include reordering (#3713) 3 years ago
Ralf W. Grosse-Kunstleve ddbc74c674 Adding .clang-tidy readability-braces-around-statements option. 3 years ago
Aaron Gokaslan d2ec836712
Add support for nested C++11 exceptions (#3608) 4 years ago
Ralf W. Grosse-Kunstleve 6abf2baa62
CodeHealth: Enabling clang-tidy google-explicit-constructor (#3250) 4 years ago
Ralf W. Grosse-Kunstleve c8ce4b8df8
Clone of @virtuald's PR #2112 with minor enhancements. (#3215) 4 years ago
jesse-sony d65edfb024
Feature/local exception translator (#2650) 4 years ago
Ralf W. Grosse-Kunstleve 2d468697d9
NOLINT reduction (#3096) 4 years ago
Aaron Gokaslan dac74ebdf5
fix(clang-tidy): performance fixes applied in tests and CI (#3051) 4 years ago
Yichen 3ac690b88b
Explicitly export exception types. (#2999) 4 years ago
Ralf W. Grosse-Kunstleve 8290a5a0da
clang -Wnon-virtual-dtor compatibility (#2626) 5 years ago
Henry Schreiner 6bcd220c8d
refactor: module -> module_ with typedef (#2544) 5 years ago
Henry Schreiner 5dfbe6f903 style: clang-tidy: modernize-use-override 5 years ago
Henry Schreiner cf0a64596e
fix: throwing repr caused a segfault (#2389) 5 years ago
James R. Barlow 3618bea2aa Add and document py::error_already_set::discard_as_unraisable() 5 years ago
Francesco Biscani deb3cb238a Add exception translation for std::overflow_error. (#1977) 6 years ago
Yannick Jadoul 97784dad3e [BUGFIX] Fixing pybind11::error_already_set.matches to also work with exception subclasses (#1715) 6 years ago
luz.paz 28cb6764fc misc. typos 8 years ago
Jason Rhinelander 1682b67326 Simplify error_already_set 8 years ago
Jason Rhinelander abcf43d59c Convert test_exceptions to new testing style 8 years ago
Dean Moldovan 83e328f58c Split test_python_types.cpp into builtin_casters, stl and pytypes 8 years ago
Roman Miroshnychenko 83a8a977a7 Add a method to check Python exception types (#772) 8 years ago
Jason Rhinelander 3f1ff3f4d1 Adds automatic casting on assignment of non-pyobject types (#551) 9 years ago
Jason Rhinelander b3794f1087 Added py::register_exception for simple case (#296) 9 years ago
Dean Moldovan 135ba8deaf Make error_already_set fetch and hold the Python error 9 years ago
Ivan Smirnov 67b54894b2 Set error if it's not set in error_already_set() 9 years ago
Jason Rhinelander 52f4be8946 Make test initialization self-registering 9 years ago
Dean Moldovan a0c1ccf0a9 Port tests to pytest 9 years ago
Jason Rhinelander b3f3d79f4c Rename examples files, as per #288 9 years ago
Pim Schellart 5a7d17ff16 Add support for user defined exception translators 9 years ago