2020-02-09 02:35:16 +00:00
|
|
|
using System;
|
2018-03-10 08:05:56 +00:00
|
|
|
using Jackett.Common.Indexers;
|
2017-08-24 10:28:41 +00:00
|
|
|
|
2018-03-10 08:05:56 +00:00
|
|
|
namespace Jackett.Common
|
2017-08-24 10:28:41 +00:00
|
|
|
{
|
2017-11-05 09:42:03 +00:00
|
|
|
public class IndexerException : Exception
|
2017-08-24 10:28:41 +00:00
|
|
|
{
|
|
|
|
public IIndexer Indexer { get; protected set; }
|
|
|
|
|
|
|
|
public IndexerException(IIndexer Indexer, string message, Exception innerException)
|
|
|
|
: base(message, innerException)
|
|
|
|
{
|
|
|
|
this.Indexer = Indexer;
|
|
|
|
}
|
|
|
|
|
|
|
|
public IndexerException(IIndexer Indexer, string message)
|
|
|
|
: this(Indexer, message, null)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public IndexerException(IIndexer Indexer, Exception innerException)
|
2017-11-06 14:03:12 +00:00
|
|
|
: this(Indexer, "Exception (" + Indexer.ID + "): " + innerException.GetBaseException().Message, innerException)
|
2017-08-24 10:28:41 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|