Re: [Libxmlplusplus-general] Exception



On Sun, 2002-11-17 at 15:00, Christophe de Vienne wrote:
> I just added some exception classes : exception, libxml_error and 
> internal_error in the xmlpp namespace.

If libxml_error is for parser errors then it should probably be called
parser_error, but we can leave it for now.

I would like to keep each class in its own .h/.cc files, and to put them
in an exceptions sub-directory.

>  I did not integrate them at all.
> 
> In fact I'm not sure about how to handle libxml errors in fact. I'm currently 
> reading the doc but I don't find anything very complete.

We will discover an appropriate exception hierarchy gradually.

> Should we use, for example, xmlSetGenericErrorFunc () ?  this would permit to 
> handle at ones all errors by parse errors and validating ones. For theses, 
> how to do properly ? 

If it makes the code simpler. We will discover what's best as we
implement it. Let's start.

> 
> Moreover, should we add a error_number attribute to the libxml_error class ?

Probably. If it is not open-ended then an enum type might be
appropriate.

Murray Cumming
murray usa net
www.murrayc.com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]