Add exception translation for std::overflow_error. (#1977)

This commit is contained in:
Francesco Biscani
2019-11-14 08:56:58 +01:00
committed by Wenzel Jakob
parent 55ff464233
commit deb3cb238a
4 changed files with 8 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ exceptions:
+--------------------------------------+--------------------------------------+
| :class:`std::range_error` | ``ValueError`` |
+--------------------------------------+--------------------------------------+
| :class:`std::overflow_error` | ``OverflowError`` |
+--------------------------------------+--------------------------------------+
| :class:`pybind11::stop_iteration` | ``StopIteration`` (used to implement |
| | custom iterators) |
+--------------------------------------+--------------------------------------+