xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: Kevin Herrboldt <kevin AT puppethead.com>, xom-interest AT lists.ibiblio.org
- Cc:
- Subject: Re: [XOM-interest] Why nu.xom.ParseException?
- Date: Thu, 3 Jul 2003 22:20:19 -0400
At 3:56 PM -0500 7/3/03, Kevin Herrboldt wrote:
This is a style question instead of a functional question.
I've used java.text.ParseException to indicate similar exceptions in my own code, and it seems like a natural fit. I can see wanting to keep the exception in the nu.xom.* package, but maybe a different name could be considered?
It's a minor irritation, but I've got code picking dates out of a XOM document (think DocBook) and using a DateFormat to parse them, which can throw a java.text.ParseException. I can't import both nu.xom.ParseException and java.text.ParseException, so my code gets littered with ugly full-package class references.
OK. I hadn't noticed that myself yet, but I agree it would be nice not to needlessly conflict. So what other names do people like? XMLParseException? ParseXMLException? Suggestions anyone?
--
Elliotte Rusty Harold
elharo AT metalab.unc.edu
Processing XML with Java (Addison-Wesley, 2002)
http://www.cafeconleche.org/books/xmljava
http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA
-
[XOM-interest] Why nu.xom.ParseException?,
Kevin Herrboldt, 07/03/2003
-
Re: [XOM-interest] Why nu.xom.ParseException?,
Elliotte Rusty Harold, 07/03/2003
-
Re: [XOM-interest] Why nu.xom.ParseException?,
Bradley S. Huffman, 07/03/2003
- Re: [XOM-interest] Why nu.xom.ParseException?, Elliotte Rusty Harold, 07/04/2003
-
Re: [XOM-interest] Why nu.xom.ParseException?,
Bradley S. Huffman, 07/03/2003
-
Re: [XOM-interest] Why nu.xom.ParseException?,
Elliotte Rusty Harold, 07/03/2003
Archive powered by MHonArc 2.6.24.