Description Methods and Functions Detailed Description Enums and Flags Author(s) References
Decoding cairo's status
cairoStatusToString(status)
Cairo uses a single status type to represent all kinds of errors. A status
value of CAIRO_STATUS_SUCCESS represents no error and has an integer value
of zero. All other status values represent an error.
Cairo's error handling is designed to be easy to use and safe. All major
cairo objects retain an error status internally which
can be queried anytime by the users using cairo*status() calls. In
the mean time, it is safe to call all cairo functions normally even if the
underlying object is in an error status. This means that no error handling
code is required before or after each individual cairo function call.
CairoStatusCairoStatus is used to indicate errors that can occur when
using Cairo. In some cases it is returned directly by functions.
but when using Cairo, the last error, if any, is stored in
the context and can be retrieved with cairoStatus.
New entries may be added in future versions. Use cairoStatusToString
to get a human-readable representation of an error message.
successno error has occurred
no-memoryout of memory
invalid-restorecairoRestore called without matching cairoSave
invalid-pop-groupno saved group to pop
no-current-pointno current point defined
invalid-matrixinvalid matrix (not invertible)
invalid-status invalid value for an input CairoStatus
null-pointerNULL pointer
invalid-stringinput string not valid UTF-8
invalid-path-datainput path data not valid
read-errorerror while reading from input stream
write-errorerror while writing to output stream
surface-finishedtarget surface has been finished
surface-type-mismatchthe surface type is not appropriate for the operation
pattern-type-mismatchthe pattern type is not appropriate for the operation
invalid-content invalid value for an input CairoContent
invalid-format invalid value for an input CairoFormat
invalid-visualinvalid value for an input Visual*
file-not-foundfile not found
invalid-dashinvalid value for a dash setting
invalid-dsc-commentinvalid value for a DSC comment (Since 1.2)
invalid-indexinvalid index passed to getter (Since 1.4)
clip-not-representableclip region not representable in desired format (Since 1.4)
Derived by RGtkGen from GTK+ documentation
https://www.cairographics.org/manual/cairo-Error-handling.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.