Changeset 1064 for library/bdm/bdmerror.cpp
- Timestamp:
- 06/09/10 14:00:40 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/bdmerror.cpp
r737 r1064 7 7 8 8 void bdm_assert_f ( const std::string &ass, const std::string &msg, const std::string &file, int line ) { 9 10 11 12 9 std::ostringstream error; 10 error << "*** Assertion failed in " << file << " on line " << line 11 << ":\n" << msg << " (" << ass << ")\n"; 12 throw std::runtime_error ( error.str() ); 13 13 } 14 14 15 15 void bdm_error_f ( const std::string &msg, const std::string &file, int line ) { 16 17 18 19 16 std::ostringstream error; 17 error << "*** Error in " << file << " on line " << line << ":\n" 18 << msg << "\n"; 19 throw std::runtime_error ( error.str() ); 20 20 } 21 21 22 22 void bdm_warning_f ( const std::string &msg, const std::string &file, int line ) { 23 24 23 std::cerr << "*** Warning in " << file << " on line " << line << ":\n" 24 << msg << std::endl; 25 25 } 26 26