You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/NzbDrone.Common/EnsureThat/ExceptionFactory.cs

22 lines
664 B

using System;
using NLog;
namespace NzbDrone.Common.EnsureThat
{
internal static class ExceptionFactory
{
private static readonly Logger Logger = LogManager.GetLogger("ArgumentValidator");
internal static ArgumentException CreateForParamValidation(string paramName, string message)
{
Logger.Warn(message);
return new ArgumentException(message, paramName);
}
internal static ArgumentNullException CreateForParamNullValidation(string paramName, string message)
{
Logger.Warn(message);
return new ArgumentNullException(paramName, message);
}
}
}