mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
upgraded to autofac 3. created nancy only mode for nzbdrone.exe /n
This commit is contained in:
parent
177f88303c
commit
b0940ed8de
77 changed files with 3930 additions and 113 deletions
22
NzbDrone.Common/EnsureThat/ExceptionFactory.cs
Normal file
22
NzbDrone.Common/EnsureThat/ExceptionFactory.cs
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue