Ignore:
Timestamp:
Dec 11, 2012, 8:27:40 AM (10 years ago)
Author:
Peter
Message:

prefer throwing yat::utility::runtime_error. refs #729

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/omic/BamFile.cc

    r2895 r2897  
    2020#include "BamFile.h"
    2121#include "BamHeader.h"
     22
     23#include "yat/utility/Exception.h"
    2224
    2325#include <bam.h>
     
    6264        std::ostringstream ss;
    6365        ss << "cannot load bam index '" << filename() << ".bai'";
    64         throw std::runtime_error(ss.str());
     66        throw utility::runtime_error(ss.str());
    6567      }
    6668    }
     
    8789      else
    8890        ss << " error: " << result_;
    89       throw std::runtime_error(ss.str());
     91      throw utility::runtime_error(ss.str());
    9092    }
    9193    return result_>=0;
     
    104106      else
    105107        ss << " error: " << result_;
    106       throw std::runtime_error(ss.str());
     108      throw utility::runtime_error(ss.str());
    107109    }
    108110    return result_>=0;
Note: See TracChangeset for help on using the changeset viewer.