Changeset 2983
- Timestamp:
- Feb 4, 2013, 2:10:14 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/bam_iterator.cc
r2943 r2983 1 1 // $Id$ 2 2 // 3 // Copyright (C) 2012 Peter Johansson3 // Copyright (C) 2012, 2013 Peter Johansson 4 4 // 5 5 // This program is free software; you can redistribute it and/or modify … … 47 47 return EXIT_SKIP; 48 48 #endif 49 test1(suite); 49 try { 50 test1(suite); 51 } 52 catch (std::runtime_error& e) { 53 suite.add(false); 54 suite.err() << "error: what: " << e.what() << "\n"; 55 } 50 56 return suite.return_value(); 51 57 } -
trunk/yat/omic/BamFile.cc
r2943 r2983 1 1 // $Id$ 2 2 // 3 // Copyright (C) 2012 Peter Johansson3 // Copyright (C) 2012, 2013 Peter Johansson 4 4 // 5 5 // This program is free software; you can redistribute it and/or modify … … 131 131 void OutBamFile::write(const BamRead& read) 132 132 { 133 samwrite(sf_, read.bam_); 133 if (!samwrite(sf_, read.bam_)) { 134 // FIXME if wanted perhaps we should throw an OutBamFile::error 135 // instead that can hold \a read 136 throw utility::runtime_error("OutBamFile::write failed"); 137 } 134 138 } 135 139 -
trunk/yat/omic/BamFile.h
r2943 r2983 4 4 // $Id$ 5 5 // 6 // Copyright (C) 2012 Peter Johansson6 // Copyright (C) 2012, 2013 Peter Johansson 7 7 // 8 8 // This program is free software; you can redistribute it and/or modify … … 199 199 /** 200 200 \brief write a read to output file 201 202 \throw utility::runtime_error if write failed 201 203 */ 202 204 void write(const BamRead& read);
Note: See TracChangeset
for help on using the changeset viewer.