File: exceptions.rst

package info (click to toggle)
pycairo 1.27.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,984 kB
  • sloc: ansic: 8,873; python: 3,688; makefile: 32; sh: 4
file content (37 lines) | stat: -rw-r--r-- 723 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.. _exceptions:

**********
Exceptions
**********

.. currentmodule:: cairo

When a cairo function or method call fails an cairo.Error exception, or a
subclass thereof, is raised.

cairo.Error()
=============

.. autoexception:: Error
    :members:
    :undoc-members:

.. autoexception:: CairoError
    :members:
    :undoc-members:
 
.. exception:: MemoryError

    :bases: :exc:`Error`, :exc:`python3:MemoryError`

    .. versionadded:: 1.15
        Prior to 1.15 :exc:`python3:MemoryError` was raised instead of this
        type.

.. exception:: IOError

    :bases: :exc:`Error`, :exc:`python3:IOError`

    .. versionadded:: 1.15
        Prior to 1.15 :exc:`python3:IOError` was raised instead of this
        type.