mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-25 22:59:10 -04:00
Rework some Cardigann exception handling
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
using NzbDrone.Common.Exceptions;
|
||||
using NzbDrone.Core.Indexers.Cardigann;
|
||||
|
||||
namespace NzbDrone.Core.Indexers.Definitions.Cardigann.Exceptions
|
||||
{
|
||||
public class CardigannConfigException : CardigannException
|
||||
{
|
||||
private readonly CardigannDefinition _configuration;
|
||||
|
||||
public CardigannConfigException(CardigannDefinition config, string message, params object[] args)
|
||||
: base(message, args)
|
||||
{
|
||||
_configuration = config;
|
||||
}
|
||||
|
||||
public CardigannConfigException(CardigannDefinition config, string message)
|
||||
: base(message)
|
||||
{
|
||||
_configuration = config;
|
||||
}
|
||||
|
||||
public CardigannDefinition Configuration => _configuration;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using NzbDrone.Common.Exceptions;
|
||||
|
||||
namespace NzbDrone.Core.Indexers.Definitions.Cardigann.Exceptions
|
||||
{
|
||||
public class CardigannException : NzbDroneException
|
||||
{
|
||||
public CardigannException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
public CardigannException(string message, params object[] args)
|
||||
: base(message, args)
|
||||
{
|
||||
}
|
||||
|
||||
public CardigannException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
}
|
||||
|
||||
public CardigannException(string message, Exception innerException, params object[] args)
|
||||
: base(message, innerException, args)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user