cairo.types.Status.NoMemory, cairo.types.Status.ReadError, cairo.types.Status.InvalidContent, cairo.types.Status.InvalidFormat, or cairo.types.Status.InvalidVisual.
Surface.status
cairo.types.Status status()Checks whether an error has previously occurred for this surface.