source: dev/trunk/jenga/include/smoothie/SmoothieException.h@ 170

Last change on this file since 170 was 170, checked in by dai_9181, 17 years ago

ベースを作成中...

File size: 602 bytes
Line 
1#pragma once
2
3#include <string>
4#include <vector>
5
6class SmoothieException
7{
8 int errorCode;
9 std::string keyword;
10 int nowLine;
11public:
12 SmoothieException( int errorCode, const std::string &keyword, int nowLine )
13 : errorCode( errorCode )
14 , keyword( keyword )
15 , nowLine( nowLine )
16 {
17 }
18 SmoothieException( int errorCode )
19 : errorCode( errorCode )
20 , keyword( "" )
21 , nowLine( -1 )
22 {
23 }
24
25 int GetErrorCode() const
26 {
27 return errorCode;
28 }
29 const std::string &GetKeyword() const
30 {
31 return keyword;
32 }
33 int GetNowLine() const
34 {
35 return nowLine;
36 }
37};
Note: See TracBrowser for help on using the repository browser.