class ApiErrorExtractor {

  public boolean quotaExceeded(IOException e) {
    ErrorInfo errorInfo = getErrorInfo(e);
    return errorInfo != null && QUOTA_EXCEEDED_REASON.equals(errorInfo.getReason());
  }

}