Add TooManyRequestsException with var retryWait

This commit is contained in:
Bakerboy448 2022-11-26 10:57:06 -06:00 committed by Qstick
parent 587a73f3d6
commit ba3a240707

View file

@ -1,4 +1,4 @@
using System;
using System;
namespace NzbDrone.Common.Http
{
@ -25,5 +25,11 @@ public TooManyRequestsException(HttpRequest request, HttpResponse response)
}
}
}
public TooManyRequestsException(HttpRequest request, HttpResponse response, TimeSpan retryWait)
: base(request, response)
{
RetryAfter = retryWait;
}
}
}