ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <>
Subject Re: File.toURL() and
Date Tue, 21 Aug 2012 21:40:31 GMT
On 08/21/2012 03:41 PM, Martin Gainty wrote:
> Make sure you catch
> IllegalArgumentException - If this URL is not absolute

Should never happen in this case.

> MalformedURLException - If a protocol handler for the URL could not be found,
>            or if some other error occurred while constructing the URL

Should also never happen, but unfortunately it is a checked exception so you have to catch
it and rethrow as e.g. AssertionError anyway.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message