Hi,
It is not possible to directly force the parser to generate exception on
a fatal error. But you can do this by throwing the same
SAXParseException object from error handler and catch the exception in
your code.
Regards,
Umesh.
On Wed, 2007-02-21 at 15:39 +0100, Attila Body wrote:
> Hi,
>
> Currently I'm experimenting with xerces, and I cannot find a way to get
> an exception on a fatal error (e.g. file not found) instead of reporting
> an error via the error reporter. I tried to modify the DOMCount example
> to not register an error hadler, but still there is no exception
> generated.
>
> My question: is it possible to force the parser to generate exception on
> a fatal error?
>
> Thanks,
>
> Attila
>
>