Re: [Libxmlplusplus-general] Exception
- From: Christophe de VIENNE <cdevienne alphacent com>
- To: libxmlplusplus-general lists sourceforge net
- Subject: Re: [Libxmlplusplus-general] Exception
- Date: Fri, 15 Nov 2002 16:29:49 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le Vendredi 15 Novembre 2002 16:05, Murray Cumming a écrit :
> On Fri, 2002-11-15 at 16:03, Christophe de VIENNE wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Murray,
> >
> > Don't you think we should add an exception to report the parse errors
> > instead of a simple bool ?
>
> Yes. It should be based on std::exception. For instance:
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mysqlcppapi/mysqlcppapi/mysq
>lcppapi/exceptions/
I didn't know you were involved in that project :)
I of course agree on the std::exception base.
I did not look closely to the libxml errors, so I don't know if we should make
one or several exceptions. For now it seems to me that one would be enough.
>
> > This would give much more information,
> > and if the user really don't want of
> > them, we can simply add a bool _use_exception; attribute to the parser
> > class.
>
> I would prefer that it wasn't optional.
You're right.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAj3VEu0ACgkQB+sU3TyOQjBCeQCffXHRSMRgC2Gc73ITZoN17MAa
5MYAnjgIkGzwxZdqNQSuhZvm7qErkxyi
=qBHz
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]