BWAPI
|
00001 #pragma once 00002 #include <string> 00003 class MultiString; 00008 class GeneralException 00009 { 00010 private : 00015 std::string message; 00016 public: 00018 GeneralException(const std::string &messageKey); 00019 const std::string getMessage(void); 00020 }; 00021 00026 class ConfigException : public GeneralException 00027 { 00028 public : 00029 ConfigException(const std::string &message); 00030 }; 00031 00033 class FileException : public GeneralException 00034 { 00035 public : 00036 FileException(const std::string &message); 00037 }; 00038 00040 class XmlException : public GeneralException 00041 { 00042 std::string fileName; 00043 long lineNumber; 00044 public : 00045 XmlException(const std::string& message, const std::string& fileName = "", const long lineNumber = 0); 00046 }; 00047 00049 class ParseException : public GeneralException 00050 { 00051 public : 00052 ParseException(const std::string& message); 00053 };