class ApiErrorExtractor {

  public boolean userProjectMissing(IOException e) {
    GoogleJsonError jsonError = getJsonError(e);
    return jsonError != null
        && jsonError.getCode() == HttpStatusCodes.STATUS_CODE_BAD_REQUEST
        && USER_PROJECT_MISSING_MESSAGE.equals(jsonError.getMessage());
  }

}