stop throwing new exceptions instead of just rethrow

pull/3895/head
Jamie Rees 6 years ago
parent 24bb0207d5
commit 4baff16d07

@ -13,8 +13,6 @@ namespace Ombi.Helpers
{
throw new ApplicationSettingsException("The URI is null, please check your settings to make sure you have configured the applications correctly.");
}
try
{
var uri = new UriBuilder();
if (val.StartsWith("http://", StringComparison.Ordinal))
@ -42,11 +40,6 @@ namespace Ombi.Helpers
return uri.Uri;
}
catch (Exception exception)
{
throw new Exception(exception.Message, exception);
}
}
/// <summary>
/// Returns the URI.
@ -64,8 +57,6 @@ namespace Ombi.Helpers
{
throw new ApplicationSettingsException("The URI is null, please check your settings to make sure you have configured the applications correctly.");
}
try
{
var uri = new UriBuilder();
if (val.StartsWith("http://", StringComparison.Ordinal))
@ -91,11 +82,6 @@ namespace Ombi.Helpers
return uri.Uri;
}
catch (Exception exception)
{
throw new Exception(exception.Message, exception);
}
}
public static Uri ReturnUriWithSubDir(this string val, int port, bool ssl, string subDir)
{

Loading…
Cancel
Save