aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/docs/source/status_and_errors.rst
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2011-06-16 15:41:48 +0200
committerSebastian Spaeth <Sebastian@SSpaeth.de>2011-06-16 15:41:48 +0200
commit0817f0e168c8212200fc6624aeaac77318a9bc35 (patch)
treeedfd985cc04a4e71d908db31686f69495a917347 /bindings/python/docs/source/status_and_errors.rst
parentd8c0e0c72dd19b50d51f07c70b880f21d69c2590 (diff)
python: Improve API documentation
Various API doc cleanups and improvements. No code change. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'bindings/python/docs/source/status_and_errors.rst')
-rw-r--r--bindings/python/docs/source/status_and_errors.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/bindings/python/docs/source/status_and_errors.rst b/bindings/python/docs/source/status_and_errors.rst
new file mode 100644
index 00000000..1d74ba17
--- /dev/null
+++ b/bindings/python/docs/source/status_and_errors.rst
@@ -0,0 +1,23 @@
+.. currentmodule:: notmuch
+
+Status and Errors
+=================
+
+Some methods return a status, indicating if an operation was successful and what the error was. Most of these status codes are expressed as a specific value, the :class:`notmuch.STATUS`.
+
+:class:`STATUS` -- Notmuch operation return value
+--------------------------------------------------
+
+.. autoclass:: notmuch.STATUS
+ :inherited-members:
+
+.. automethod:: notmuch.STATUS.status2str
+
+:exc:`NotmuchError` -- A Notmuch execution error
+------------------------------------------------
+Whenever an error occurs, we throw a special Exception:
+
+.. autoexception:: NotmuchError
+ :members:
+
+ This execption inherits directly from :exc:`Exception` and is raised on errors during the notmuch execution.