[Sax-devel] Expected behavior for Exceptions raised in event callbacks
Brought to you by:
dmegginson
From: Jeff R. <jef...@de...> - 2002-06-10 19:40:44
|
I have often read that to stop SAX processing, you can throw an exception in a callback handler (e.g. startElement). This will in fact stop processing. I am just curious if there is a mandated behavior for the parser at that point? Should it 1) stop processing, re-throw the exception to the application which invoked the parse function? 2) stop processing, fire an ErrorHandler fataError callback, re-throw the exception to the application which invoked the parse function? 3) stop processing, fire an ErrorHandler fataError callback, trap and handle the exception, never raising it back to the calling application. Thanks, Jeff Rafter Defined Systems http://www.defined.net XML Development and Developer Web Hosting |