You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System;
|
|
|
|
using NzbDrone.Common.Exceptions;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Indexers.Exceptions
|
|
|
|
{
|
|
|
|
public class RequestLimitReachedException : NzbDroneException
|
|
|
|
{
|
|
|
|
public TimeSpan RetryAfter { get; private set; }
|
|
|
|
|
|
|
|
public RequestLimitReachedException(string message, params object[] args)
|
|
|
|
: base(message, args)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public RequestLimitReachedException(string message)
|
|
|
|
: base(message)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public RequestLimitReachedException(string message, TimeSpan retryAfter)
|
|
|
|
: base(message)
|
|
|
|
{
|
|
|
|
RetryAfter = retryAfter;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|