* Basic exception class to distinguish * OpenXcom exceptions from the rest. */
| 30 | * OpenXcom exceptions from the rest. |
| 31 | */ |
| 32 | class Exception : public std::exception |
| 33 | { |
| 34 | private: |
| 35 | std::string _msg; |
| 36 | public: |
| 37 | /// Creates an exception. |
| 38 | Exception(const std::string &msg) throw(); |
| 39 | /// Cleans up the exception. |
| 40 | ~Exception() throw(); |
| 41 | /// Returns the exception message. |
| 42 | const char *what() const throw(); |
| 43 | }; |
| 44 | |
| 45 | } |
| 46 |
no outgoing calls