xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Can't throw exception in specialized NodeFactorymethod
- 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
>
-
Re: [XOM-interest] Can't throw exception in specialized NodeFactorymethod,
Lance Eason, 02/14/2006
- Re: [XOM-interest] Can't throw exception in specialized NodeFactorymethod, Howard Katz, 02/14/2006
Archive powered by MHonArc 2.6.24.