[cairo] error handling
behdad at behdad.org
Tue Jul 3 12:44:46 PDT 2007
On Tue, 2007-07-03 at 17:05 +0100, Baz wrote:
> > Definitely not the second. Why is it returning SUCCESS.
> Well, I ended up writing the code the first way (see below), but
> remember this is for functions which previously returned no status,
> and which may leave cairo in an error state anyway (so you should have
> been checking cairo's status). Now theres a new return value, which is
> just there to communicate a warning. I can either have it return any
> possible cairo status, and document that; or have it return only
> warning statuses (ie invalid glyph) or success, and you continue to
> find error statuses the old way.
Ah, I see. Makes some sense. I'm not sure which way we should go.
Lets try to document cairo's error handling model before deciding about
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo