Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Can't throw exception in specialized NodeFactory method

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Howard Katz" <howardk AT fatdog.com>
  • To: <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] Can't throw exception in specialized NodeFactory method
  • Date: Tue, 14 Feb 2006 10:27:21 -0800

I'm overridding NodeFactory to do some custom element handling while a
document is being streamed in. My finishMakingElement() method can fail
however, and I'm not quite sure what to do with the generated exception. I'd
like to throw and catch it somewhere higher up, but I can't because the
parent finishMakingElement() method doesn't have a throws clause and Java
won't let me do that. Any ideas?

Howard




  • [XOM-interest] Can't throw exception in specialized NodeFactory method, Howard Katz, 02/14/2006

Archive powered by MHonArc 2.6.24.

Top of Page