Files
Jackett-Jackett/src/Jackett.Common/IndexerException.cs
Cory 889a8da4e5 Convert functions and properties to expression bodies when able (#7312)
Convert functions and properties to expression bodies when able
2020-02-25 10:08:03 -06:00

25 lines
716 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)
{
}
}
}