1.. _exceptions: 2 3********** 4Exceptions 5********** 6 7.. currentmodule:: cairo 8 9When a cairo function or method call fails an cairo.Error exception, or a 10subclass thereof, is raised. 11 12cairo.Error() 13============= 14 15.. exception:: Error 16 17 This exception is raised when a cairo object returns an error status. 18 19 .. attribute:: status 20 21 :type: :class:`cairo.Status` 22 23.. exception:: CairoError 24 25 An alias for :exc:`Error` 26 27 .. versionadded:: 1.12.0 28 29.. exception:: MemoryError 30 31 :bases: :exc:`Error`, :exc:`python3:MemoryError` 32 33 .. versionadded:: 1.15 34 Prior to 1.15 :exc:`python3:MemoryError` was raised instead of this 35 type. 36 37.. exception:: IOError 38 39 :bases: :exc:`Error`, :exc:`python3:IOError` 40 41 .. versionadded:: 1.15 42 Prior to 1.15 :exc:`python3:IOError` was raised instead of this 43 type. 44