[cairo] API: get error message

Bill Spitzak spitzak at gmail.com
Mon Nov 27 20:10:02 UTC 2017


Would prefer "text" or "string" or "message" over "details" to make it
really clear that this is a string that can be printed. "details"
sounds like it is returning a data structure imho.

It also seems like you need one of these for every object that can
return a status, I see the following:

cairo_font_options_status (cairo_font_options_t *options);
cairo_font_face_status (cairo_font_face_t *font_face);
cairo_scaled_font_status (cairo_scaled_font_t *scaled_font);
cairo_status (cairo_t *cr);
cairo_surface_status (cairo_surface_t *surface);
cairo_pattern_status (cairo_pattern_t *pattern);


On Mon, Nov 27, 2017 at 1:17 AM, Adrian Johnson <ajohnson at redneon.com> wrote:
> On 26/11/17 21:15, Uli Schlachter wrote:
>> On 26.11.2017 11:11, Adrian Johnson wrote:
>> [...]
>>> const char *
>>> cairo_surface_get_error_explanation()
>>>
>>> const char *
>>> cairo_get_error_explanation()
>>>
>>> const char *
>>> cairo_scaled_font_get_error_explanation()
>>>
>>> Any alternative suggestions for the "error_explanation" name?
>>
>> error_details?
>
> I like this one. So the API will be:
>
> const char *
> cairo_surface_get_error_details ()
>
> const char *
> cairo_get_error_details ()
>
> const char *
> cairo_scaled_font_get_error_details ()
>
>>
>> Cheers,
>> Uli
>>
>
> --
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo


More information about the cairo mailing list