"Geert Van Damme" <[EMAIL PROTECTED]> writes:
Hi,
I'm writing a custom transformer, extending the AbstractDOMTransformer. Is there a way to throw an exception from this transformer so that the error handling pipeline of the sitemap is 'activated' ? (the transform method signature does not throw an exception). Or is the error handling from the sitemap only meant for SAXExceptions ?
Any checked exception in setup or any of the ContentHandler methods should activate
the error pipline. If you can't throw a ProcessingException in setup, wrap a SAXException
around your real exception.
In the case of AbstractDOMTransformer, transform() doesn't declare any exceptions (which it should IMO), so you might have to rewrite the notify() method in your transformer so that your transformation operation can throw exceptions.
-Bertrand
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]