Error Messages

When an exception is thrown by the implementation of the MicroVG API, the exception VectorGraphicsException with the error message MicroVG:E=<messageId> is issued, where the meaning of <messageId> is defined in the Field Detail of each error code.

Drawing Incidents

An exception reports what the API checks before it renders: a closed resource, an invalid argument, or a resource it could not create. It does not report an incident the renderer meets while it draws.

A drawing reports such an incident through the drawing log flags of the graphics context. This is the only channel for it, and it covers the case where the renderer runs out of memory. The flags then hold DRAWING_LOG_LIBRARY_INCIDENT and DRAWING_LOG_OUT_OF_MEMORY.

See Drawing Logs for the meaning of each flag and for the ways an application reads them.