Re: API: get error message

Bill Spitzak <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAL-8oAiQwvgRF0+c5b0WkEMh-0qgQMYOuHzth3qsks5Rzy4xHA@mail.gmail.com>
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 <[email protected]> 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
> [email protected]
> https://lists.cairographics.org/mailman/listinfo/cairo
-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.