You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Cristina Cioroboiu <cr...@yahoo.com> on 2004/03/18 15:53:25 UTC
error handler and exceptions
Hello!
I didn't understand exactly error handlers and exceptions.
I have written my Error Handler for XercesDOMParser using samples.
In its method i have formatted the warnings, errors and fatal error and after that i throw a runtime_error using my formatted messages.
In the application where i use the XercesDOMParser I setup my new ErrorHandler.
there I have something as:
try
{
parser.parse("blabla");
}
catch (exception &e)
{
..........
}
catch (...)
{
throw runtime_error( "Unhandled exception ")
}
What I'm not sure is where I catch the XMLException and DOMException (as in samples):
in first catch or in the second?
Thanks, Cristina.
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam