The community member posted a question about how to throw an error that respects the maxRequestRetries when using RetryRequestError, which retries the request infinitely until it succeeds. Another community member suggested that throwing any non-child Error class should work, and provided an example of throwing a new Error with a message that will increase the request.retryCount. The other community members expressed appreciation for the response.
Hello, With RetryRequestError, the request gets retried an infinite times until it succeeds, what error should I throw to respect the maxRequestRetries?