Skip to content

Commit 93349cb

Browse files
committed
docs: Document built-in exception mappings
1 parent 1cefb3b commit 93349cb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/exceptions.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ new exception.
3737
Existing exceptions can be manually binded using :py:func:`map_exception_to_dbus_error`
3838
function.
3939

40+
Python built-in exceptions
41+
+++++++++++++++++++++++++++
42+
43+
All Python built-in exceptions are mapped to D-Bus errors.
44+
45+
The D-Bus error name is created by appending ``org.python.Error.``
46+
to the exception name.
47+
48+
For example, ``AssertionError`` is bound
49+
to ``org.python.Error.AssertionError`` name.
50+
4051
Functions
4152
+++++++++
4253

0 commit comments

Comments
 (0)