mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 17:59:14 +00:00
22 lines
No EOL
664 B
C#
22 lines
No EOL
664 B
C#
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);
|
|
}
|
|
}
|
|
} |