ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <jgl...@cloudbees.com>
Subject Re: File.toURL() and org.apache.tools.ant.launch.Locator.fileToURL(File)
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message