Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Can't throw exception in specialized NodeFactorymethod

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: "'Lance Eason'" <leason AT betweenmarkets.com>, <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Can't throw exception in specialized NodeFactorymethod
  • Date: Tue, 14 Feb 2006 10:50:11 -0800

Doh! :-)

Thanks,
Howard

> -----Original Message-----
> From: Lance Eason [mailto:leason AT betweenmarkets.com]
> Sent: February 14, 2006 10:45 AM
> To: Howard Katz; xom-interest AT lists.ibiblio.org
> Subject: RE: [XOM-interest] Can't throw exception in
> specialized NodeFactorymethod
>
> You can always throw an exception derived from
> RuntimeException instead
> of a checked exception.
>
>
> -----Original Message-----
> From: xom-interest-bounces AT lists.ibiblio.org
> [mailto:xom-interest-bounces AT lists.ibiblio.org] On Behalf Of
> Howard Katz
> Sent: Tuesday, February 14, 2006 12:27 PM
> To: xom-interest AT lists.ibiblio.org
> Subject: [XOM-interest] Can't throw exception in specialized
> NodeFactorymethod
>
> 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 mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
>





Archive powered by MHonArc 2.6.24.

Top of Page