onError method

void onError(
  1. AFQueryError err
)

Implementation

void onError(AFQueryError err) {
  assert(responseCalls == 0, "Did you call both onSuccess/onError or one multiple times?");
  responseCalls |= responseError;
  error = err;
}