handleError method

void handleError(
  1. RealtimeResponse response
)
inherited

Implementation

void handleError(RealtimeResponse response) {
  if (response.data['code'] == status.policyViolation) {
    throw AppwriteException(response.data["message"], response.data["code"]);
  } else {
    _retry();
  }
}