addError method

void addError(
  1. NirikshakHttpError error,
  2. int requestId
)

Add error to exisng nirikshak http call

Implementation

void addError(NirikshakHttpError error, int requestId) {
  final selectedCall = _selectCall(requestId);

  if (selectedCall.id == -1) {
    if (kDebugMode) log("Selected call is null");
    return;
  }

  selectedCall.error = error;
}