xml-rpc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wilson" <...@wilson.co.uk>
Subject Re: XmlRpc class exception handling
Date Wed, 11 Sep 2002 18:22:44 GMT
Ryan Hoegg wrote:
> Hello,
>
> I was wondering if there is any reason that XmlRpc.parse() throws a
> raw Exception? (line 342, XmlRpc.java, CVS from today about an hour
> ago)
>
> Why not create an IncompleteParserClassException or some such?

What advantage would that give us?

It's a method with only package visability. It only throws an Exception in
one case this is wrapped in a ParseFailed exception which is then seen by
code outside the package.

It seams a reasonable design decision to me.

John Wilson
The Wilson Partnership
http://www.wilson.co.uk


Mime
View raw message