[xsd-users] Microsoft C++ exception: xercesc_2_6::XMLValid::Codes

Boris Kolpackov boris at codesynthesis.com
Fri Sep 30 13:08:19 EDT 2005


Nelson,

nelson.faria <nelson.faria at netcabo.pt> writes:

> By the way.. is there any exception i can catch in order to provide
> proper error messages ?!

The exception that is thrown in case there were any errors that got
reported via ErrorHandler is xml_schema::invalid_instance. It doesn't
carry any message; the only way to get to it is via ErrorHandler.

> I could also create my own error handler and then deal with the
> errors.. but if i could just use the standart errorhandler i'd have
> less code :P

The default error handler (that gets installed if you didn't provide
your own) outputs diagnostics to STDERR (std:cerr for char and
std::wcerr for wchar_t). Whether it is good enough depends on your
application.

hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20050930/7bae13e1/attachment.pgp


More information about the xsd-users mailing list