RequestLimitExceededException.httpRequest constructor

RequestLimitExceededException.httpRequest(
  1. BaseResponse response
)

Initializes an instance of RequestLimitExceeded with a Response

Implementation

RequestLimitExceededException.httpRequest(BaseResponse response) : super('''
Failed to perform an HTTP request to YouTube because of rate limiting.
This error indicates that YouTube thinks there were too many requests made from this IP and considers it suspicious.
To resolve this error, please wait some time and try again -or- try injecting an HttpClient that has cookies for an authenticated user.
Unfortunately, there's nothing the library can do to work around this error.
Request: ${response.request}
Response: $response
''');