handle method

void handle(
  1. Object e
)

Implementation

void handle(Object e) {
  if (e is BadRequestException ||
      e is UnauthorizedException ||
      e is InternalServerErrorException ||
      e is NoInternetConnectionException ||
      e is DeadlineExceededException) {
    SnackbarManager().showAlertSnackbar(e.toString());
  }
}