CairoStatus is used to indicate errors that can occur when using Cairo. In some cases it is returned directly by functions. but when using CairoContext, the last error, if any, is stored in the object and can be retrieved with CairoContext::status or cairo_status(). New entries may be added in future versions.
Use Cairo::statusToString or cairo_status_to_string() to get a human-readable representation of an error message.
No error has occurred
Out of memory
cairo_restore() called without matching cairo_save()
No saved group to pop
No current point defined
Invalid matrix (not invertible)
Invalid value for an input CairoStatus>
Null pointer
Input string not valid UTF-8 string
Input path data not valid
Error while reading from input stream
Error while writing to output stream
Target surface has been finished
The surface type is not appropriate for the operation
The pattern type is not appropriate for the operation
Invalid value for an input CairoContent
Invalid value for an input CairoFormat
Invalid value for an input Visual
File not found
Invalid value for a dash setting
Invalid value for a DSC comment
Invalid index passed to getter
Clip region not representable in desired format
Error creating or writing to a temporary file
Invalid value for CairoStride