[cairo] error handling questions

Andy Wingo wingo at pobox.com
Mon Jul 9 03:27:53 PDT 2007


Hi Travis,

On Thu, 2007-07-05 at 09:29 -0700, Travis Griggs wrote:

> For the Smalltalk case, what I could see doing is watching my own
> stderr and picking off cairo errors.

Why are you doing this? This is most terrible.

> My goal basically is to create/throw an exception when a Cairo error
> occurs, with as much meaningful information packed into it.

So check the cairo_status_t at the return of every function, and raise
an exception if it is not OK.

Regards,

Andy.
-- 
http://wingolog.org/


More information about the cairo mailing list