addError method

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

Add error to existing alice http call

Implementation

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

  if (selectedCall == null) {
    AliceUtils.log('Selected call is null');
    return;
  }

  selectedCall.error = error;
  callsSubject.add([...callsSubject.value]);
}