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)
|
2020-02-25 16:08:03 +00:00
|
|
|
=> this.Indexer = Indexer;
|
2017-08-24 10:28:41 +00:00
|
|
|
|
|
|
|
public IndexerException(IIndexer Indexer, string message)
|
|
|
|
: this(Indexer, message, null)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public IndexerException(IIndexer Indexer, Exception innerException)
|
2020-05-11 19:59:28 +00:00
|
|
|
: this(Indexer, "Exception (" + Indexer.Id + "): " + innerException.GetBaseException().Message, innerException)
|
2017-08-24 10:28:41 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|