[prev in list] [next in list] [prev in thread] [next in thread]
List: httpclient-commons-dev
Subject: Re: API review request / HttpException subclass of IOException
From: Ortwin_Glück <odi () odi ! ch>
Date: 2008-05-28 7:19:34
Message-ID: 483D0786.4070204 () odi ! ch
[Download RAW message or body]
Sam Berlin wrote:
> What are people's feelings on the HttpMethod constructors that throw a
> URISyntaxException? ... I hate RuntimeExceptions as much as the next guy,
> but what do you think of wrapping the exception in an
> IllegalArgumentException? It's very clear that it's an illegal argument.
> URI actually provides a static URI.create method that wraps the
> URISyntaxException within an IllegalArgumentException, expecting situations
> like this.
>
> Sam
Makes a lot of sense to me. Especially for HttpMethod, as this is a "top level"
class.
Cheers
Odi
--
[web] http://www.odi.ch/
[blog] http://www.odi.ch/weblog/
[pgp] key 0x81CF3416
finger print F2B1 B21F F056 D53E 5D79 A5AF 02BE 70F5 81CF 3416
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic