diff options
Diffstat (limited to 'doc/reference/exceptions.rst')
-rw-r--r-- | doc/reference/exceptions.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/reference/exceptions.rst b/doc/reference/exceptions.rst new file mode 100644 index 0000000..ce1bfa2 --- /dev/null +++ b/doc/reference/exceptions.rst @@ -0,0 +1,18 @@ +.. _exceptions: + +********** +Exceptions +********** + +.. currentmodule:: cairo + +When a cairo function or method call fails an exception is raised. I/O errors +raise IOError, memory errors raise MemoryError, and all other errors raise +cairo.Error. + +cairo.Error() +============= + +.. exception:: cairo.Error + + This exception is raised when a cairo object returns an error status. |