|
|
|
@ -1,23 +1,34 @@
|
|
|
|
|
using NzbDrone.Common.Exceptions;
|
|
|
|
|
using System;
|
|
|
|
|
using NzbDrone.Common.Exceptions;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Indexers.Exceptions
|
|
|
|
|
{
|
|
|
|
|
public class IndexerException : NzbDroneException
|
|
|
|
|
{
|
|
|
|
|
private readonly IndexerResponse _indexerResponse;
|
|
|
|
|
public IndexerResponse Response { get; }
|
|
|
|
|
|
|
|
|
|
public IndexerException(IndexerResponse response, string message)
|
|
|
|
|
: base(message)
|
|
|
|
|
{
|
|
|
|
|
Response = response;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IndexerException(IndexerResponse response, string message, Exception innerException)
|
|
|
|
|
: base(message, innerException)
|
|
|
|
|
{
|
|
|
|
|
Response = response;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IndexerException(IndexerResponse response, string message, params object[] args)
|
|
|
|
|
: base(message, args)
|
|
|
|
|
{
|
|
|
|
|
_indexerResponse = response;
|
|
|
|
|
Response = response;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IndexerException(IndexerResponse response, string message)
|
|
|
|
|
: base(message)
|
|
|
|
|
public IndexerException(IndexerResponse response, string message, Exception innerException, params object[] args)
|
|
|
|
|
: base(message, innerException, args)
|
|
|
|
|
{
|
|
|
|
|
_indexerResponse = response;
|
|
|
|
|
Response = response;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IndexerResponse Response => _indexerResponse;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|