Re: [xml] enhancing the error handling API
- From: Stefan Seefeld <seefeld sympatico ca>
- To: xml gnome org
- Subject: Re: [xml] enhancing the error handling API
- Date: Tue, 18 Mar 2003 12:03:25 -0500
Aleksey Sanin wrote:
You can! You do not want to change/remove the existing error functions.
Which means that old error function simply must calls the new ones.
Of course, some parameters (file, line, etc.) will not be set but this will
help to do migration slowly.
By the way, I'm not convinced that a single generic error handler is
such a good idea. May be we can classify the type of error to make the
handlers a little less generic but more 'typed'. For example 'file' and
'line' attributes seem to be relevant only in the context of file
parsing. What about xpath syntax errors (say) ? Or (I'm coming from C++,
you'll notice) stream based input, i.e. when there is no notion of 'file
name' ?
I think the approach to capture all that in a single generic handler is
fundamentally flawed.
Regards,
Stefan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]