| Line | |
|---|
| 1 | #pragma once
|
|---|
| 2 |
|
|---|
| 3 | #include <string>
|
|---|
| 4 | #include <vector>
|
|---|
| 5 |
|
|---|
| 6 | class SmoothieException
|
|---|
| 7 | {
|
|---|
| 8 | int errorCode;
|
|---|
| 9 | std::string keyword;
|
|---|
| 10 | int nowLine;
|
|---|
| 11 | public:
|
|---|
| 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.