- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Common/include/ErrorMorpheo.h
r82 r88 1 #ifndef morpheo_ErrorMorpheo2 #define morpheo_ErrorMorpheo1 #ifndef Morpheo_ErrorMorpheo_h 2 #define Morpheo_ErrorMorpheo_h 3 3 4 4 /* … … 9 9 */ 10 10 11 #include "ToString.h" 11 #include "Common/include/ToString.h" 12 #include "Common/include/Translation.h" 13 #include "Common/include/Message.h" 14 12 15 #include <iostream> 13 16 #include <exception> … … 23 26 24 27 // -----[ methods ]--------------------------------------------------- 25 public : ErrorMorpheo () throw() {_msg ="Exception detected ...";}26 public : ErrorMorpheo (std::string msg) throw() {_msg =msg;}28 public : ErrorMorpheo () throw() {_msg = toString("%s ",MSG_ERROR); _msg+="Exception detected ...";} 29 public : ErrorMorpheo (std::string msg) throw() {_msg = toString("%s ",MSG_ERROR); _msg+=msg;} 27 30 public : ErrorMorpheo (std::string funcname, 28 31 std::string msg , … … 30 33 std::string file ) throw() 31 34 { 32 _msg = toString("<%s> at line %d, in file %s : %s",funcname.c_str(),line,file.c_str(),msg.c_str()); 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()); 37 #else 38 _msg = toString(_("%s %s"),MSG_ERROR,msg.c_str()); 39 #endif 33 40 } 34 41 public : ~ErrorMorpheo (void) throw() {} … … 43 50 44 51 // -----[ methods ]--------------------------------------------------- 45 public : TestMorpheo () throw() {_msg= "Test error ...";}52 public : TestMorpheo () throw() {_msg=_("Test error ...");} 46 53 public : TestMorpheo (std::string msg) throw() {_msg=msg;} 47 54 public : ~TestMorpheo (void) throw() {}
Note: See TracChangeset
for help on using the changeset viewer.