Changeset 186 in dev for trunk/jenga/include/smoothie
- Timestamp:
- Jun 25, 2007, 4:22:39 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jenga/include/smoothie/SmoothieException.h
r181 r186 3 3 #include <string> 4 4 #include <vector> 5 6 void SetError(int ErrorNum,const std::string &keyWord,int pos); 7 void SetError(int num,const char *KeyWord,int pos); 8 void SetError(); 5 9 6 10 class SmoothieException … … 9 13 std::string keyword; 10 14 int nowLine; 15 static void Throwing() 16 { 17 //ここでブレークポイント 18 int dummy=0; 19 } 11 20 public: 21 static void Throw( int errorCode, const std::string &keyword, int nowLine ) 22 { 23 Throwing(); 24 SetError( errorCode, keyword, nowLine ); 25 } 26 static void Throw( int errorCode, const std::string &keyword ) 27 { 28 Throwing(); 29 SetError( errorCode, keyword,-1 ); 30 } 31 static void Throw( int errorCode ) 32 { 33 Throwing(); 34 SetError( errorCode,"",-1 ); 35 } 36 static void Throw() 37 { 38 Throwing(); 39 SetError(); 40 } 41 12 42 SmoothieException( int errorCode, const std::string &keyword, int nowLine ) 13 43 : errorCode( errorCode )
Note:
See TracChangeset
for help on using the changeset viewer.