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; }
|
|
|
|
|
2023-02-19 11:26:49 +00:00
|
|
|
public IndexerException(IIndexer indexer, string message, Exception innerException)
|
2017-08-24 10:28:41 +00:00
|
|
|
: base(message, innerException)
|
2023-03-07 18:21:46 +00:00
|
|
|
{
|
|
|
|
this.Indexer = indexer;
|
|
|
|
}
|
2017-08-24 10:28:41 +00:00
|
|
|
|
2023-02-19 11:26:49 +00:00
|
|
|
public IndexerException(IIndexer indexer, string message)
|
|
|
|
: this(indexer, message, null)
|
2017-08-24 10:28:41 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-02-19 11:26:49 +00:00
|
|
|
public IndexerException(IIndexer indexer, Exception innerException)
|
|
|
|
: this(indexer, "Exception (" + indexer.Id + "): " + innerException.GetBaseException().Message, innerException)
|
2017-08-24 10:28:41 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|