mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
upgraded to autofac 3. created nancy only mode for nzbdrone.exe /n
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user