Changeset 117 for trunk/IPs/systemC/processor/Morpheo/Common/include
- Timestamp:
- May 16, 2009, 4:42:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Common/include/ErrorMorpheo.h
r88 r117 22 22 class ErrorMorpheo : public std::exception 23 23 { 24 // -----[ 24 // -----[ fields ]---------------------------------------------------- 25 25 private : std::string _msg; 26 26 27 // -----[ 27 // -----[ methods ]--------------------------------------------------- 28 28 public : ErrorMorpheo () throw() {_msg = toString("%s ",MSG_ERROR); _msg+="Exception detected ...";} 29 29 public : ErrorMorpheo (std::string msg) throw() {_msg = toString("%s ",MSG_ERROR); _msg+=msg;} … … 34 34 { 35 35 #ifdef DEBUG 36 _msg = toString(_("%s <%s> at line %d, in file %s : %s"),MSG_ERROR,funcname.c_str(),line,file.c_str(),msg.c_str()); 36 _msg = toString(_("\n%s at line %d, in file %s"),MSG_ERROR,line,file.c_str()); 37 _msg = toString(_("\n%s <%s> %s"),MSG_ERROR,funcname.c_str(),msg.c_str()); 37 38 #else 38 _msg = toString(_(" %s %s"),MSG_ERROR,msg.c_str());39 _msg = toString(_("\n%s %s"),MSG_ERROR,msg.c_str()); 39 40 #endif 40 41 } … … 44 45 }; 45 46 46 class TestMorpheo : public std::exception47 {48 // -----[ fields ]----------------------------------------------------49 private : std::string _msg;47 // class TestMorpheo : public std::exception 48 // { 49 // // -----[ fields ]---------------------------------------------------- 50 // private : std::string _msg; 50 51 51 // -----[ methods ]---------------------------------------------------52 public : TestMorpheo () throw() {_msg=_("Test error ...");}53 public : TestMorpheo (std::string msg) throw() {_msg=msg;}54 public : ~TestMorpheo (void) throw() {}55 public : const char* what () const throw() { return ( _msg.c_str() );}56 };52 // // -----[ methods ]--------------------------------------------------- 53 // public : TestMorpheo () throw() {_msg=_("Test error ...");} 54 // public : TestMorpheo (std::string msg) throw() {_msg=msg;} 55 // public : ~TestMorpheo (void) throw() {} 56 // public : const char* what () const throw() { return ( _msg.c_str() );} 57 // }; 57 58 58 59 }; // end namespace morpheo
Note: See TracChangeset
for help on using the changeset viewer.