fail method
Makes method requests to endpoint throw error, the way the real
provider reports a failed request.
Implementation
void fail(
AgEndpoint endpoint,
AgApiException error, {
AgHttpMethod method = AgHttpMethod.get,
}) {
_replies[_key(method, endpoint)] = _Reply(error: error);
}