Last change
on this file since 542 was
421,
checked in by nicolape, 17 years ago
|
Added error message class in orxonxo core. One can call it with orxonox::Error(ErrorCode, ErrorMessage);
|
File size:
266 bytes
|
Rev | Line | |
---|
[421] | 1 | #ifndef __ERROR_CLASS__ |
---|
| 2 | #define __ERROR_CLASS__ |
---|
| 3 | |
---|
| 4 | #include <iostream> |
---|
| 5 | #include <string> |
---|
| 6 | |
---|
| 7 | namespace orxonox |
---|
| 8 | { |
---|
| 9 | class Error |
---|
| 10 | { |
---|
| 11 | public: |
---|
| 12 | Error(); |
---|
| 13 | Error(std::string errorMsg, int errorCode=0); |
---|
| 14 | Error(int errorCode, std::string errorMsg=""); |
---|
| 15 | private: |
---|
| 16 | |
---|
| 17 | }; |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.