mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00

Really hope I don't break anything with this Went to have a go at .NET core and it just became too confusing for me with 'Jackett' namespace referring to both Jackett.Common and Jackett
27 lines
736 B
C#
27 lines
736 B
C#
using System;
|
|
using Jackett.Common.Indexers;
|
|
|
|
namespace Jackett.Common
|
|
{
|
|
public class IndexerException : Exception
|
|
{
|
|
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)
|
|
: this(Indexer, "Exception (" + Indexer.ID + "): " + innerException.GetBaseException().Message, innerException)
|
|
{
|
|
}
|
|
}
|
|
}
|