006f538b5a95fd704a106546add7b6cd9bd77fa3
jcasper
  Sun Jul 19 22:26:32 2026 -0700
Muting warnings when retrieving hic data for a region not in the hic file, refs #36444

diff --git src/hg/lib/straw/straw.cpp src/hg/lib/straw/straw.cpp
index bc111525628..42117565289 100644
--- src/hg/lib/straw/straw.cpp
+++ src/hg/lib/straw/straw.cpp
@@ -1605,31 +1605,31 @@
                                        const string &norm, const string &unit, int32_t resolution) {
         chromosome chrom1 = chromosomeMap[chr1];
         chromosome chrom2 = chromosomeMap[chr2];
         return new MatrixZoomData(chrom1, chrom2, (matrixType), (norm), (unit),
                                   resolution, version, master, totalFileSize, fileName);
     }
 };
 
 int64_t HiCFile::totalFileSize = 0LL;
 
 void parsePositions(const string &chrLoc, string &chrom, int64_t &pos1, int64_t &pos2, map<string, chromosome> map) {
     string x, y;
     stringstream ss(chrLoc);
     getline(ss, chrom, ':');
     if (map.count(chrom) == 0) {
-        throw strawException("chromosome " + chrom + " not found in the file.");
+        throw strawChromNotFoundException("chromosome " + chrom + " not found in the file.");
         //cerr << "chromosome " << chrom << " not found in the file." << endl;
         //exit(7);
     }
 
     if (getline(ss, x, ':') && getline(ss, y, ':')) {
         pos1 = stol(x);
         pos2 = stol(y);
     } else {
         pos1 = 0LL;
         pos2 = map[chrom].length;
     }
 }
 
 vector<contactRecord> straw(const string &matrixType, const string &norm, const string &fileName, const string &chr1loc,
                             const string &chr2loc, const string &unit, int32_t binsize) {