Changeset 186 in dev for trunk/jenga/include/smoothie


Ignore:
Timestamp:
Jun 25, 2007, 4:22:39 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jenga/include/smoothie/SmoothieException.h

    r181 r186  
    33#include <string>
    44#include <vector>
     5
     6void SetError(int ErrorNum,const std::string &keyWord,int pos);
     7void SetError(int num,const char *KeyWord,int pos);
     8void SetError();
    59
    610class SmoothieException
     
    913    std::string keyword;
    1014    int nowLine;
     15    static void Throwing()
     16    {
     17        //ここでブレークポイント
     18        int dummy=0;
     19    }
    1120public:
     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
    1242    SmoothieException( int errorCode, const std::string &keyword, int nowLine )
    1343        : errorCode( errorCode )
Note: See TracChangeset for help on using the changeset viewer.