Index: trunk/jenga/include/smoothie/SmoothieException.h
===================================================================
--- trunk/jenga/include/smoothie/SmoothieException.h	(revision 181)
+++ trunk/jenga/include/smoothie/SmoothieException.h	(revision 186)
@@ -3,4 +3,8 @@
 #include <string>
 #include <vector>
+
+void SetError(int ErrorNum,const std::string &keyWord,int pos);
+void SetError(int num,const char *KeyWord,int pos);
+void SetError();
 
 class SmoothieException
@@ -9,5 +13,31 @@
 	std::string keyword;
 	int nowLine;
+	static void Throwing()
+	{
+		//ここでブレークポイント
+		int dummy=0;
+	}
 public:
+	static void Throw( int errorCode, const std::string &keyword, int nowLine )
+	{
+		Throwing();
+		SetError( errorCode, keyword, nowLine );
+	}
+	static void Throw( int errorCode, const std::string &keyword )
+	{
+		Throwing();
+		SetError( errorCode, keyword,-1 );
+	}
+	static void Throw( int errorCode )
+	{
+		Throwing();
+		SetError( errorCode,"",-1 );
+	}
+	static void Throw()
+	{
+		Throwing();
+		SetError();
+	}
+
 	SmoothieException( int errorCode, const std::string &keyword, int nowLine )
 		: errorCode( errorCode )
