I'm trying to check is a given URL is Valid and downloadable. I wrote this code and it does work but i'm wondering if it can be achieved without the ugly try-catch
public static bool IsUrlValid(string url)
{
try
{
WebClient webClient = new WebClient();
var stream = webClient.OpenRead(url);
return true;
}
catch (Exception ex)
{
return false;
}
}