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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]