Skip to content

Commit db637da

Browse files
authored
[docs] Add note that std::runtime_error translates to RuntimeError (#1169)
1 parent 29daeed commit db637da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/exceptions.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ that convert to specific Python exceptions as shown below:
3838
- ``ValueError``
3939
* - ``std::overflow_error``
4040
- ``OverflowError``
41+
* - ``std::runtime_error``
42+
- ``RuntimeError``
4143
* - :cpp:func:`nb::stop_iteration <stop_iteration>`
4244
- ``StopIteration`` (used to implement custom iterator)
4345
* - :cpp:func:`nb::index_error <index_error>`

0 commit comments

Comments
 (0)