LCOV - code coverage report
Current view: top level - source/ps - Errors.cpp (source / functions) Hit Total Coverage
Test: 0 A.D. test coverage report Lines: 8 252 3.2 %
Date: 2023-01-19 00:18:29 Functions: 8 225 3.6 %

          Line data    Source code
       1             : // Auto-generated by errorlist.pl - do not edit.
       2             : 
       3             : #include "precompiled.h"
       4             : 
       5             : #include "Errors.h"
       6             : 
       7           0 : class PSERROR_CVFSFile : public PSERROR { protected: PSERROR_CVFSFile(const char* msg); };
       8           0 : class PSERROR_Deserialize : public PSERROR { protected: PSERROR_Deserialize(const char* msg); };
       9           0 : class PSERROR_DllLoader : public PSERROR { protected: PSERROR_DllLoader(const char* msg); };
      10           0 : class PSERROR_Error : public PSERROR { protected: PSERROR_Error(const char* msg); };
      11           0 : class PSERROR_File : public PSERROR { protected: PSERROR_File(const char* msg); };
      12           0 : class PSERROR_Game : public PSERROR { protected: PSERROR_Game(const char* msg); };
      13           0 : class PSERROR_Scripting : public PSERROR { protected: PSERROR_Scripting(const char* msg); };
      14           0 : class PSERROR_Serialize : public PSERROR { protected: PSERROR_Serialize(const char* msg); };
      15           0 : class PSERROR_System : public PSERROR { protected: PSERROR_System(const char* msg); };
      16           0 : class PSERROR_Xeromyces : public PSERROR { protected: PSERROR_Xeromyces(const char* msg); };
      17             : 
      18           0 : class PSERROR_Game_World : public PSERROR_Game { protected: PSERROR_Game_World(const char* msg); };
      19           0 : class PSERROR_Scripting_DefineType : public PSERROR_Scripting { protected: PSERROR_Scripting_DefineType(const char* msg); };
      20           0 : class PSERROR_Scripting_LoadFile : public PSERROR_Scripting { protected: PSERROR_Scripting_LoadFile(const char* msg); };
      21             : 
      22           0 : class PSERROR_CVFSFile_AlreadyLoaded : public PSERROR_CVFSFile { public: PSERROR_CVFSFile_AlreadyLoaded(); PSERROR_CVFSFile_AlreadyLoaded(const char* msg); PSRETURN getCode() const; };
      23           0 : class PSERROR_CVFSFile_LoadFailed : public PSERROR_CVFSFile { public: PSERROR_CVFSFile_LoadFailed(); PSERROR_CVFSFile_LoadFailed(const char* msg); PSRETURN getCode() const; };
      24           0 : class PSERROR_Deserialize_InvalidCharInString : public PSERROR_Deserialize { public: PSERROR_Deserialize_InvalidCharInString(); PSERROR_Deserialize_InvalidCharInString(const char* msg); PSRETURN getCode() const; };
      25           0 : class PSERROR_Deserialize_OutOfBounds : public PSERROR_Deserialize { public: PSERROR_Deserialize_OutOfBounds(); PSERROR_Deserialize_OutOfBounds(const char* msg); PSRETURN getCode() const; };
      26           0 : class PSERROR_Deserialize_ReadFailed : public PSERROR_Deserialize { public: PSERROR_Deserialize_ReadFailed(); PSERROR_Deserialize_ReadFailed(const char* msg); PSRETURN getCode() const; };
      27           0 : class PSERROR_Deserialize_ScriptError : public PSERROR_Deserialize { public: PSERROR_Deserialize_ScriptError(); PSERROR_Deserialize_ScriptError(const char* msg); PSRETURN getCode() const; };
      28           0 : class PSERROR_DllLoader_DllNotLoaded : public PSERROR_DllLoader { public: PSERROR_DllLoader_DllNotLoaded(); PSERROR_DllLoader_DllNotLoaded(const char* msg); PSRETURN getCode() const; };
      29           0 : class PSERROR_DllLoader_SymbolNotFound : public PSERROR_DllLoader { public: PSERROR_DllLoader_SymbolNotFound(); PSERROR_DllLoader_SymbolNotFound(const char* msg); PSRETURN getCode() const; };
      30           0 : class PSERROR_Error_InvalidError : public PSERROR_Error { public: PSERROR_Error_InvalidError(); PSERROR_Error_InvalidError(const char* msg); PSRETURN getCode() const; };
      31           0 : class PSERROR_File_InvalidType : public PSERROR_File { public: PSERROR_File_InvalidType(); PSERROR_File_InvalidType(const char* msg); PSRETURN getCode() const; };
      32           0 : class PSERROR_File_InvalidVersion : public PSERROR_File { public: PSERROR_File_InvalidVersion(); PSERROR_File_InvalidVersion(const char* msg); PSRETURN getCode() const; };
      33           0 : class PSERROR_File_OpenFailed : public PSERROR_File { public: PSERROR_File_OpenFailed(); PSERROR_File_OpenFailed(const char* msg); PSRETURN getCode() const; };
      34           0 : class PSERROR_File_ReadFailed : public PSERROR_File { public: PSERROR_File_ReadFailed(); PSERROR_File_ReadFailed(const char* msg); PSRETURN getCode() const; };
      35           0 : class PSERROR_File_UnexpectedEOF : public PSERROR_File { public: PSERROR_File_UnexpectedEOF(); PSERROR_File_UnexpectedEOF(const char* msg); PSRETURN getCode() const; };
      36           0 : class PSERROR_File_WriteFailed : public PSERROR_File { public: PSERROR_File_WriteFailed(); PSERROR_File_WriteFailed(const char* msg); PSRETURN getCode() const; };
      37           0 : class PSERROR_Game_World_MapLoadFailed : public PSERROR_Game_World { public: PSERROR_Game_World_MapLoadFailed(); PSERROR_Game_World_MapLoadFailed(const char* msg); PSRETURN getCode() const; };
      38           0 : class PSERROR_Scripting_CallFunctionFailed : public PSERROR_Scripting { public: PSERROR_Scripting_CallFunctionFailed(); PSERROR_Scripting_CallFunctionFailed(const char* msg); PSRETURN getCode() const; };
      39           0 : class PSERROR_Scripting_CreateObjectFailed : public PSERROR_Scripting { public: PSERROR_Scripting_CreateObjectFailed(); PSERROR_Scripting_CreateObjectFailed(const char* msg); PSRETURN getCode() const; };
      40           0 : class PSERROR_Scripting_DefineConstantFailed : public PSERROR_Scripting { public: PSERROR_Scripting_DefineConstantFailed(); PSERROR_Scripting_DefineConstantFailed(const char* msg); PSRETURN getCode() const; };
      41           0 : class PSERROR_Scripting_DefineType_AlreadyExists : public PSERROR_Scripting_DefineType { public: PSERROR_Scripting_DefineType_AlreadyExists(); PSERROR_Scripting_DefineType_AlreadyExists(const char* msg); PSRETURN getCode() const; };
      42           0 : class PSERROR_Scripting_DefineType_CreationFailed : public PSERROR_Scripting_DefineType { public: PSERROR_Scripting_DefineType_CreationFailed(); PSERROR_Scripting_DefineType_CreationFailed(const char* msg); PSRETURN getCode() const; };
      43           0 : class PSERROR_Scripting_LoadFile_EvalErrors : public PSERROR_Scripting_LoadFile { public: PSERROR_Scripting_LoadFile_EvalErrors(); PSERROR_Scripting_LoadFile_EvalErrors(const char* msg); PSRETURN getCode() const; };
      44           0 : class PSERROR_Scripting_LoadFile_OpenFailed : public PSERROR_Scripting_LoadFile { public: PSERROR_Scripting_LoadFile_OpenFailed(); PSERROR_Scripting_LoadFile_OpenFailed(const char* msg); PSRETURN getCode() const; };
      45           0 : class PSERROR_Scripting_RegisterFunctionFailed : public PSERROR_Scripting { public: PSERROR_Scripting_RegisterFunctionFailed(); PSERROR_Scripting_RegisterFunctionFailed(const char* msg); PSRETURN getCode() const; };
      46           0 : class PSERROR_Scripting_SetupFailed : public PSERROR_Scripting { public: PSERROR_Scripting_SetupFailed(); PSERROR_Scripting_SetupFailed(const char* msg); PSRETURN getCode() const; };
      47           0 : class PSERROR_Scripting_TypeDoesNotExist : public PSERROR_Scripting { public: PSERROR_Scripting_TypeDoesNotExist(); PSERROR_Scripting_TypeDoesNotExist(const char* msg); PSRETURN getCode() const; };
      48           0 : class PSERROR_Serialize_InvalidCharInString : public PSERROR_Serialize { public: PSERROR_Serialize_InvalidCharInString(); PSERROR_Serialize_InvalidCharInString(const char* msg); PSRETURN getCode() const; };
      49           0 : class PSERROR_Serialize_InvalidScriptValue : public PSERROR_Serialize { public: PSERROR_Serialize_InvalidScriptValue(); PSERROR_Serialize_InvalidScriptValue(const char* msg); PSRETURN getCode() const; };
      50           0 : class PSERROR_Serialize_OutOfBounds : public PSERROR_Serialize { public: PSERROR_Serialize_OutOfBounds(); PSERROR_Serialize_OutOfBounds(const char* msg); PSRETURN getCode() const; };
      51           0 : class PSERROR_Serialize_ScriptError : public PSERROR_Serialize { public: PSERROR_Serialize_ScriptError(); PSERROR_Serialize_ScriptError(const char* msg); PSRETURN getCode() const; };
      52           0 : class PSERROR_System_RequiredExtensionsMissing : public PSERROR_System { public: PSERROR_System_RequiredExtensionsMissing(); PSERROR_System_RequiredExtensionsMissing(const char* msg); PSRETURN getCode() const; };
      53           0 : class PSERROR_System_SDLInitFailed : public PSERROR_System { public: PSERROR_System_SDLInitFailed(); PSERROR_System_SDLInitFailed(const char* msg); PSRETURN getCode() const; };
      54           0 : class PSERROR_System_VmodeFailed : public PSERROR_System { public: PSERROR_System_VmodeFailed(); PSERROR_System_VmodeFailed(const char* msg); PSRETURN getCode() const; };
      55           0 : class PSERROR_Xeromyces_XMLOpenFailed : public PSERROR_Xeromyces { public: PSERROR_Xeromyces_XMLOpenFailed(); PSERROR_Xeromyces_XMLOpenFailed(const char* msg); PSRETURN getCode() const; };
      56           0 : class PSERROR_Xeromyces_XMLParseError : public PSERROR_Xeromyces { public: PSERROR_Xeromyces_XMLParseError(); PSERROR_Xeromyces_XMLParseError(const char* msg); PSRETURN getCode() const; };
      57           0 : class PSERROR_Xeromyces_XMLValidationFailed : public PSERROR_Xeromyces { public: PSERROR_Xeromyces_XMLValidationFailed(); PSERROR_Xeromyces_XMLValidationFailed(const char* msg); PSRETURN getCode() const; };
      58             : 
      59             : extern const PSRETURN PSRETURN_CVFSFile_AlreadyLoaded = 0x01000001;
      60             : extern const PSRETURN PSRETURN_CVFSFile_LoadFailed = 0x01000002;
      61             : extern const PSRETURN PSRETURN_Deserialize_InvalidCharInString = 0x02000001;
      62             : extern const PSRETURN PSRETURN_Deserialize_OutOfBounds = 0x02000002;
      63             : extern const PSRETURN PSRETURN_Deserialize_ReadFailed = 0x02000003;
      64             : extern const PSRETURN PSRETURN_Deserialize_ScriptError = 0x02000004;
      65             : extern const PSRETURN PSRETURN_DllLoader_DllNotLoaded = 0x03000001;
      66             : extern const PSRETURN PSRETURN_DllLoader_SymbolNotFound = 0x03000002;
      67             : extern const PSRETURN PSRETURN_Error_InvalidError = 0x04000001;
      68             : extern const PSRETURN PSRETURN_File_InvalidType = 0x05000001;
      69             : extern const PSRETURN PSRETURN_File_InvalidVersion = 0x05000002;
      70             : extern const PSRETURN PSRETURN_File_OpenFailed = 0x05000003;
      71             : extern const PSRETURN PSRETURN_File_ReadFailed = 0x05000004;
      72             : extern const PSRETURN PSRETURN_File_UnexpectedEOF = 0x05000005;
      73             : extern const PSRETURN PSRETURN_File_WriteFailed = 0x05000006;
      74             : extern const PSRETURN PSRETURN_Game_World_MapLoadFailed = 0x06030001;
      75             : extern const PSRETURN PSRETURN_Scripting_DefineType_AlreadyExists = 0x07010001;
      76             : extern const PSRETURN PSRETURN_Scripting_DefineType_CreationFailed = 0x07010002;
      77             : extern const PSRETURN PSRETURN_Scripting_LoadFile_EvalErrors = 0x07020001;
      78             : extern const PSRETURN PSRETURN_Scripting_LoadFile_OpenFailed = 0x07020002;
      79             : extern const PSRETURN PSRETURN_Scripting_CallFunctionFailed = 0x07000001;
      80             : extern const PSRETURN PSRETURN_Scripting_CreateObjectFailed = 0x07000002;
      81             : extern const PSRETURN PSRETURN_Scripting_DefineConstantFailed = 0x07000003;
      82             : extern const PSRETURN PSRETURN_Scripting_RegisterFunctionFailed = 0x07000004;
      83             : extern const PSRETURN PSRETURN_Scripting_SetupFailed = 0x07000005;
      84             : extern const PSRETURN PSRETURN_Scripting_TypeDoesNotExist = 0x07000006;
      85             : extern const PSRETURN PSRETURN_Serialize_InvalidCharInString = 0x08000001;
      86             : extern const PSRETURN PSRETURN_Serialize_InvalidScriptValue = 0x08000002;
      87             : extern const PSRETURN PSRETURN_Serialize_OutOfBounds = 0x08000003;
      88             : extern const PSRETURN PSRETURN_Serialize_ScriptError = 0x08000004;
      89             : extern const PSRETURN PSRETURN_System_RequiredExtensionsMissing = 0x09000001;
      90             : extern const PSRETURN PSRETURN_System_SDLInitFailed = 0x09000002;
      91             : extern const PSRETURN PSRETURN_System_VmodeFailed = 0x09000003;
      92             : extern const PSRETURN PSRETURN_Xeromyces_XMLOpenFailed = 0x0a000001;
      93             : extern const PSRETURN PSRETURN_Xeromyces_XMLParseError = 0x0a000002;
      94             : extern const PSRETURN PSRETURN_Xeromyces_XMLValidationFailed = 0x0a000003;
      95             : 
      96             : extern const PSRETURN MASK__PSRETURN_CVFSFile = 0xff000000;
      97             : extern const PSRETURN CODE__PSRETURN_CVFSFile = 0x01000000;
      98             : extern const PSRETURN MASK__PSRETURN_Deserialize = 0xff000000;
      99             : extern const PSRETURN CODE__PSRETURN_Deserialize = 0x02000000;
     100             : extern const PSRETURN MASK__PSRETURN_DllLoader = 0xff000000;
     101             : extern const PSRETURN CODE__PSRETURN_DllLoader = 0x03000000;
     102             : extern const PSRETURN MASK__PSRETURN_Error = 0xff000000;
     103             : extern const PSRETURN CODE__PSRETURN_Error = 0x04000000;
     104             : extern const PSRETURN MASK__PSRETURN_File = 0xff000000;
     105             : extern const PSRETURN CODE__PSRETURN_File = 0x05000000;
     106             : extern const PSRETURN MASK__PSRETURN_Game = 0xff000000;
     107             : extern const PSRETURN CODE__PSRETURN_Game = 0x06000000;
     108             : extern const PSRETURN MASK__PSRETURN_Scripting = 0xff000000;
     109             : extern const PSRETURN CODE__PSRETURN_Scripting = 0x07000000;
     110             : extern const PSRETURN MASK__PSRETURN_Serialize = 0xff000000;
     111             : extern const PSRETURN CODE__PSRETURN_Serialize = 0x08000000;
     112             : extern const PSRETURN MASK__PSRETURN_System = 0xff000000;
     113             : extern const PSRETURN CODE__PSRETURN_System = 0x09000000;
     114             : extern const PSRETURN MASK__PSRETURN_Xeromyces = 0x0a000000;
     115             : extern const PSRETURN CODE__PSRETURN_Xeromyces = 0x0a000000;
     116             : extern const PSRETURN MASK__PSRETURN_Game_World = 0xffff0000;
     117             : extern const PSRETURN CODE__PSRETURN_Game_World = 0x06030000;
     118             : extern const PSRETURN MASK__PSRETURN_Scripting_DefineType = 0xffff0000;
     119             : extern const PSRETURN CODE__PSRETURN_Scripting_DefineType = 0x07010000;
     120             : extern const PSRETURN MASK__PSRETURN_Scripting_LoadFile = 0xffff0000;
     121             : extern const PSRETURN CODE__PSRETURN_Scripting_LoadFile = 0x07020000;
     122             : 
     123             : extern const PSRETURN MASK__PSRETURN_CVFSFile_AlreadyLoaded = 0xffffffff;
     124             : extern const PSRETURN CODE__PSRETURN_CVFSFile_AlreadyLoaded = 0x01000001;
     125             : extern const PSRETURN MASK__PSRETURN_CVFSFile_LoadFailed = 0xffffffff;
     126             : extern const PSRETURN CODE__PSRETURN_CVFSFile_LoadFailed = 0x01000002;
     127             : extern const PSRETURN MASK__PSRETURN_Deserialize_InvalidCharInString = 0xffffffff;
     128             : extern const PSRETURN CODE__PSRETURN_Deserialize_InvalidCharInString = 0x02000001;
     129             : extern const PSRETURN MASK__PSRETURN_Deserialize_OutOfBounds = 0xffffffff;
     130             : extern const PSRETURN CODE__PSRETURN_Deserialize_OutOfBounds = 0x02000002;
     131             : extern const PSRETURN MASK__PSRETURN_Deserialize_ReadFailed = 0xffffffff;
     132             : extern const PSRETURN CODE__PSRETURN_Deserialize_ReadFailed = 0x02000003;
     133             : extern const PSRETURN MASK__PSRETURN_Deserialize_ScriptError = 0xffffffff;
     134             : extern const PSRETURN CODE__PSRETURN_Deserialize_ScriptError = 0x02000004;
     135             : extern const PSRETURN MASK__PSRETURN_DllLoader_DllNotLoaded = 0xffffffff;
     136             : extern const PSRETURN CODE__PSRETURN_DllLoader_DllNotLoaded = 0x03000001;
     137             : extern const PSRETURN MASK__PSRETURN_DllLoader_SymbolNotFound = 0xffffffff;
     138             : extern const PSRETURN CODE__PSRETURN_DllLoader_SymbolNotFound = 0x03000002;
     139             : extern const PSRETURN MASK__PSRETURN_Error_InvalidError = 0xffffffff;
     140             : extern const PSRETURN CODE__PSRETURN_Error_InvalidError = 0x04000001;
     141             : extern const PSRETURN MASK__PSRETURN_File_InvalidType = 0xffffffff;
     142             : extern const PSRETURN CODE__PSRETURN_File_InvalidType = 0x05000001;
     143             : extern const PSRETURN MASK__PSRETURN_File_InvalidVersion = 0xffffffff;
     144             : extern const PSRETURN CODE__PSRETURN_File_InvalidVersion = 0x05000002;
     145             : extern const PSRETURN MASK__PSRETURN_File_OpenFailed = 0xffffffff;
     146             : extern const PSRETURN CODE__PSRETURN_File_OpenFailed = 0x05000003;
     147             : extern const PSRETURN MASK__PSRETURN_File_ReadFailed = 0xffffffff;
     148             : extern const PSRETURN CODE__PSRETURN_File_ReadFailed = 0x05000004;
     149             : extern const PSRETURN MASK__PSRETURN_File_UnexpectedEOF = 0xffffffff;
     150             : extern const PSRETURN CODE__PSRETURN_File_UnexpectedEOF = 0x05000005;
     151             : extern const PSRETURN MASK__PSRETURN_File_WriteFailed = 0xffffffff;
     152             : extern const PSRETURN CODE__PSRETURN_File_WriteFailed = 0x05000006;
     153             : extern const PSRETURN MASK__PSRETURN_Game_World_MapLoadFailed = 0xffffffff;
     154             : extern const PSRETURN CODE__PSRETURN_Game_World_MapLoadFailed = 0x06030001;
     155             : extern const PSRETURN MASK__PSRETURN_Scripting_DefineType_AlreadyExists = 0xffffffff;
     156             : extern const PSRETURN CODE__PSRETURN_Scripting_DefineType_AlreadyExists = 0x07010001;
     157             : extern const PSRETURN MASK__PSRETURN_Scripting_DefineType_CreationFailed = 0xffffffff;
     158             : extern const PSRETURN CODE__PSRETURN_Scripting_DefineType_CreationFailed = 0x07010002;
     159             : extern const PSRETURN MASK__PSRETURN_Scripting_LoadFile_EvalErrors = 0xffffffff;
     160             : extern const PSRETURN CODE__PSRETURN_Scripting_LoadFile_EvalErrors = 0x07020001;
     161             : extern const PSRETURN MASK__PSRETURN_Scripting_LoadFile_OpenFailed = 0xffffffff;
     162             : extern const PSRETURN CODE__PSRETURN_Scripting_LoadFile_OpenFailed = 0x07020002;
     163             : extern const PSRETURN MASK__PSRETURN_Scripting_CallFunctionFailed = 0xffffffff;
     164             : extern const PSRETURN CODE__PSRETURN_Scripting_CallFunctionFailed = 0x07000001;
     165             : extern const PSRETURN MASK__PSRETURN_Scripting_CreateObjectFailed = 0xffffffff;
     166             : extern const PSRETURN CODE__PSRETURN_Scripting_CreateObjectFailed = 0x07000002;
     167             : extern const PSRETURN MASK__PSRETURN_Scripting_DefineConstantFailed = 0xffffffff;
     168             : extern const PSRETURN CODE__PSRETURN_Scripting_DefineConstantFailed = 0x07000003;
     169             : extern const PSRETURN MASK__PSRETURN_Scripting_RegisterFunctionFailed = 0xffffffff;
     170             : extern const PSRETURN CODE__PSRETURN_Scripting_RegisterFunctionFailed = 0x07000004;
     171             : extern const PSRETURN MASK__PSRETURN_Scripting_SetupFailed = 0xffffffff;
     172             : extern const PSRETURN CODE__PSRETURN_Scripting_SetupFailed = 0x07000005;
     173             : extern const PSRETURN MASK__PSRETURN_Scripting_TypeDoesNotExist = 0xffffffff;
     174             : extern const PSRETURN CODE__PSRETURN_Scripting_TypeDoesNotExist = 0x07000006;
     175             : extern const PSRETURN MASK__PSRETURN_Serialize_InvalidCharInString = 0xffffffff;
     176             : extern const PSRETURN CODE__PSRETURN_Serialize_InvalidCharInString = 0x08000001;
     177             : extern const PSRETURN MASK__PSRETURN_Serialize_InvalidScriptValue = 0xffffffff;
     178             : extern const PSRETURN CODE__PSRETURN_Serialize_InvalidScriptValue = 0x08000002;
     179             : extern const PSRETURN MASK__PSRETURN_Serialize_OutOfBounds = 0xffffffff;
     180             : extern const PSRETURN CODE__PSRETURN_Serialize_OutOfBounds = 0x08000003;
     181             : extern const PSRETURN MASK__PSRETURN_Serialize_ScriptError = 0xffffffff;
     182             : extern const PSRETURN CODE__PSRETURN_Serialize_ScriptError = 0x08000004;
     183             : extern const PSRETURN MASK__PSRETURN_System_RequiredExtensionsMissing = 0xffffffff;
     184             : extern const PSRETURN CODE__PSRETURN_System_RequiredExtensionsMissing = 0x09000001;
     185             : extern const PSRETURN MASK__PSRETURN_System_SDLInitFailed = 0xffffffff;
     186             : extern const PSRETURN CODE__PSRETURN_System_SDLInitFailed = 0x09000002;
     187             : extern const PSRETURN MASK__PSRETURN_System_VmodeFailed = 0xffffffff;
     188             : extern const PSRETURN CODE__PSRETURN_System_VmodeFailed = 0x09000003;
     189             : extern const PSRETURN MASK__PSRETURN_Xeromyces_XMLOpenFailed = 0xffffffff;
     190             : extern const PSRETURN CODE__PSRETURN_Xeromyces_XMLOpenFailed = 0x0a000001;
     191             : extern const PSRETURN MASK__PSRETURN_Xeromyces_XMLParseError = 0xffffffff;
     192             : extern const PSRETURN CODE__PSRETURN_Xeromyces_XMLParseError = 0x0a000002;
     193             : extern const PSRETURN MASK__PSRETURN_Xeromyces_XMLValidationFailed = 0xffffffff;
     194             : extern const PSRETURN CODE__PSRETURN_Xeromyces_XMLValidationFailed = 0x0a000003;
     195             : 
     196           0 : PSERROR_CVFSFile::PSERROR_CVFSFile(const char* msg) : PSERROR(msg) { }
     197           0 : PSERROR_Deserialize::PSERROR_Deserialize(const char* msg) : PSERROR(msg) { }
     198           0 : PSERROR_DllLoader::PSERROR_DllLoader(const char* msg) : PSERROR(msg) { }
     199           0 : PSERROR_Error::PSERROR_Error(const char* msg) : PSERROR(msg) { }
     200           0 : PSERROR_File::PSERROR_File(const char* msg) : PSERROR(msg) { }
     201           0 : PSERROR_Game::PSERROR_Game(const char* msg) : PSERROR(msg) { }
     202           0 : PSERROR_Scripting::PSERROR_Scripting(const char* msg) : PSERROR(msg) { }
     203           5 : PSERROR_Serialize::PSERROR_Serialize(const char* msg) : PSERROR(msg) { }
     204           0 : PSERROR_System::PSERROR_System(const char* msg) : PSERROR(msg) { }
     205           0 : PSERROR_Xeromyces::PSERROR_Xeromyces(const char* msg) : PSERROR(msg) { }
     206           0 : PSERROR_Game_World::PSERROR_Game_World(const char* msg) : PSERROR_Game(msg) { }
     207           0 : PSERROR_Scripting_DefineType::PSERROR_Scripting_DefineType(const char* msg) : PSERROR_Scripting(msg) { }
     208           0 : PSERROR_Scripting_LoadFile::PSERROR_Scripting_LoadFile(const char* msg) : PSERROR_Scripting(msg) { }
     209             : 
     210           0 : PSERROR_CVFSFile_AlreadyLoaded::PSERROR_CVFSFile_AlreadyLoaded() : PSERROR_CVFSFile(NULL) { }
     211           0 : PSERROR_CVFSFile_AlreadyLoaded::PSERROR_CVFSFile_AlreadyLoaded(const char* msg) : PSERROR_CVFSFile(msg) { }
     212           0 : PSRETURN PSERROR_CVFSFile_AlreadyLoaded::getCode() const { return 0x01000001; }
     213             : 
     214           0 : PSERROR_CVFSFile_LoadFailed::PSERROR_CVFSFile_LoadFailed() : PSERROR_CVFSFile(NULL) { }
     215           0 : PSERROR_CVFSFile_LoadFailed::PSERROR_CVFSFile_LoadFailed(const char* msg) : PSERROR_CVFSFile(msg) { }
     216           0 : PSRETURN PSERROR_CVFSFile_LoadFailed::getCode() const { return 0x01000002; }
     217             : 
     218           0 : PSERROR_Deserialize_InvalidCharInString::PSERROR_Deserialize_InvalidCharInString() : PSERROR_Deserialize(NULL) { }
     219           0 : PSERROR_Deserialize_InvalidCharInString::PSERROR_Deserialize_InvalidCharInString(const char* msg) : PSERROR_Deserialize(msg) { }
     220           0 : PSRETURN PSERROR_Deserialize_InvalidCharInString::getCode() const { return 0x02000001; }
     221             : 
     222           0 : PSERROR_Deserialize_OutOfBounds::PSERROR_Deserialize_OutOfBounds() : PSERROR_Deserialize(NULL) { }
     223           0 : PSERROR_Deserialize_OutOfBounds::PSERROR_Deserialize_OutOfBounds(const char* msg) : PSERROR_Deserialize(msg) { }
     224           0 : PSRETURN PSERROR_Deserialize_OutOfBounds::getCode() const { return 0x02000002; }
     225             : 
     226           0 : PSERROR_Deserialize_ReadFailed::PSERROR_Deserialize_ReadFailed() : PSERROR_Deserialize(NULL) { }
     227           0 : PSERROR_Deserialize_ReadFailed::PSERROR_Deserialize_ReadFailed(const char* msg) : PSERROR_Deserialize(msg) { }
     228           0 : PSRETURN PSERROR_Deserialize_ReadFailed::getCode() const { return 0x02000003; }
     229             : 
     230           0 : PSERROR_Deserialize_ScriptError::PSERROR_Deserialize_ScriptError() : PSERROR_Deserialize(NULL) { }
     231           0 : PSERROR_Deserialize_ScriptError::PSERROR_Deserialize_ScriptError(const char* msg) : PSERROR_Deserialize(msg) { }
     232           0 : PSRETURN PSERROR_Deserialize_ScriptError::getCode() const { return 0x02000004; }
     233             : 
     234           0 : PSERROR_DllLoader_DllNotLoaded::PSERROR_DllLoader_DllNotLoaded() : PSERROR_DllLoader(NULL) { }
     235           0 : PSERROR_DllLoader_DllNotLoaded::PSERROR_DllLoader_DllNotLoaded(const char* msg) : PSERROR_DllLoader(msg) { }
     236           0 : PSRETURN PSERROR_DllLoader_DllNotLoaded::getCode() const { return 0x03000001; }
     237             : 
     238           0 : PSERROR_DllLoader_SymbolNotFound::PSERROR_DllLoader_SymbolNotFound() : PSERROR_DllLoader(NULL) { }
     239           0 : PSERROR_DllLoader_SymbolNotFound::PSERROR_DllLoader_SymbolNotFound(const char* msg) : PSERROR_DllLoader(msg) { }
     240           0 : PSRETURN PSERROR_DllLoader_SymbolNotFound::getCode() const { return 0x03000002; }
     241             : 
     242           0 : PSERROR_Error_InvalidError::PSERROR_Error_InvalidError() : PSERROR_Error(NULL) { }
     243           0 : PSERROR_Error_InvalidError::PSERROR_Error_InvalidError(const char* msg) : PSERROR_Error(msg) { }
     244           0 : PSRETURN PSERROR_Error_InvalidError::getCode() const { return 0x04000001; }
     245             : 
     246           0 : PSERROR_File_InvalidType::PSERROR_File_InvalidType() : PSERROR_File(NULL) { }
     247           0 : PSERROR_File_InvalidType::PSERROR_File_InvalidType(const char* msg) : PSERROR_File(msg) { }
     248           0 : PSRETURN PSERROR_File_InvalidType::getCode() const { return 0x05000001; }
     249             : 
     250           0 : PSERROR_File_InvalidVersion::PSERROR_File_InvalidVersion() : PSERROR_File(NULL) { }
     251           0 : PSERROR_File_InvalidVersion::PSERROR_File_InvalidVersion(const char* msg) : PSERROR_File(msg) { }
     252           0 : PSRETURN PSERROR_File_InvalidVersion::getCode() const { return 0x05000002; }
     253             : 
     254           0 : PSERROR_File_OpenFailed::PSERROR_File_OpenFailed() : PSERROR_File(NULL) { }
     255           0 : PSERROR_File_OpenFailed::PSERROR_File_OpenFailed(const char* msg) : PSERROR_File(msg) { }
     256           0 : PSRETURN PSERROR_File_OpenFailed::getCode() const { return 0x05000003; }
     257             : 
     258           0 : PSERROR_File_ReadFailed::PSERROR_File_ReadFailed() : PSERROR_File(NULL) { }
     259           0 : PSERROR_File_ReadFailed::PSERROR_File_ReadFailed(const char* msg) : PSERROR_File(msg) { }
     260           0 : PSRETURN PSERROR_File_ReadFailed::getCode() const { return 0x05000004; }
     261             : 
     262           0 : PSERROR_File_UnexpectedEOF::PSERROR_File_UnexpectedEOF() : PSERROR_File(NULL) { }
     263           0 : PSERROR_File_UnexpectedEOF::PSERROR_File_UnexpectedEOF(const char* msg) : PSERROR_File(msg) { }
     264           0 : PSRETURN PSERROR_File_UnexpectedEOF::getCode() const { return 0x05000005; }
     265             : 
     266           0 : PSERROR_File_WriteFailed::PSERROR_File_WriteFailed() : PSERROR_File(NULL) { }
     267           0 : PSERROR_File_WriteFailed::PSERROR_File_WriteFailed(const char* msg) : PSERROR_File(msg) { }
     268           0 : PSRETURN PSERROR_File_WriteFailed::getCode() const { return 0x05000006; }
     269             : 
     270           0 : PSERROR_Game_World_MapLoadFailed::PSERROR_Game_World_MapLoadFailed() : PSERROR_Game_World(NULL) { }
     271           0 : PSERROR_Game_World_MapLoadFailed::PSERROR_Game_World_MapLoadFailed(const char* msg) : PSERROR_Game_World(msg) { }
     272           0 : PSRETURN PSERROR_Game_World_MapLoadFailed::getCode() const { return 0x06030001; }
     273             : 
     274           0 : PSERROR_Scripting_DefineType_AlreadyExists::PSERROR_Scripting_DefineType_AlreadyExists() : PSERROR_Scripting_DefineType(NULL) { }
     275           0 : PSERROR_Scripting_DefineType_AlreadyExists::PSERROR_Scripting_DefineType_AlreadyExists(const char* msg) : PSERROR_Scripting_DefineType(msg) { }
     276           0 : PSRETURN PSERROR_Scripting_DefineType_AlreadyExists::getCode() const { return 0x07010001; }
     277             : 
     278           0 : PSERROR_Scripting_DefineType_CreationFailed::PSERROR_Scripting_DefineType_CreationFailed() : PSERROR_Scripting_DefineType(NULL) { }
     279           0 : PSERROR_Scripting_DefineType_CreationFailed::PSERROR_Scripting_DefineType_CreationFailed(const char* msg) : PSERROR_Scripting_DefineType(msg) { }
     280           0 : PSRETURN PSERROR_Scripting_DefineType_CreationFailed::getCode() const { return 0x07010002; }
     281             : 
     282           0 : PSERROR_Scripting_LoadFile_EvalErrors::PSERROR_Scripting_LoadFile_EvalErrors() : PSERROR_Scripting_LoadFile(NULL) { }
     283           0 : PSERROR_Scripting_LoadFile_EvalErrors::PSERROR_Scripting_LoadFile_EvalErrors(const char* msg) : PSERROR_Scripting_LoadFile(msg) { }
     284           0 : PSRETURN PSERROR_Scripting_LoadFile_EvalErrors::getCode() const { return 0x07020001; }
     285             : 
     286           0 : PSERROR_Scripting_LoadFile_OpenFailed::PSERROR_Scripting_LoadFile_OpenFailed() : PSERROR_Scripting_LoadFile(NULL) { }
     287           0 : PSERROR_Scripting_LoadFile_OpenFailed::PSERROR_Scripting_LoadFile_OpenFailed(const char* msg) : PSERROR_Scripting_LoadFile(msg) { }
     288           0 : PSRETURN PSERROR_Scripting_LoadFile_OpenFailed::getCode() const { return 0x07020002; }
     289             : 
     290           0 : PSERROR_Scripting_CallFunctionFailed::PSERROR_Scripting_CallFunctionFailed() : PSERROR_Scripting(NULL) { }
     291           0 : PSERROR_Scripting_CallFunctionFailed::PSERROR_Scripting_CallFunctionFailed(const char* msg) : PSERROR_Scripting(msg) { }
     292           0 : PSRETURN PSERROR_Scripting_CallFunctionFailed::getCode() const { return 0x07000001; }
     293             : 
     294           0 : PSERROR_Scripting_CreateObjectFailed::PSERROR_Scripting_CreateObjectFailed() : PSERROR_Scripting(NULL) { }
     295           0 : PSERROR_Scripting_CreateObjectFailed::PSERROR_Scripting_CreateObjectFailed(const char* msg) : PSERROR_Scripting(msg) { }
     296           0 : PSRETURN PSERROR_Scripting_CreateObjectFailed::getCode() const { return 0x07000002; }
     297             : 
     298           0 : PSERROR_Scripting_DefineConstantFailed::PSERROR_Scripting_DefineConstantFailed() : PSERROR_Scripting(NULL) { }
     299           0 : PSERROR_Scripting_DefineConstantFailed::PSERROR_Scripting_DefineConstantFailed(const char* msg) : PSERROR_Scripting(msg) { }
     300           0 : PSRETURN PSERROR_Scripting_DefineConstantFailed::getCode() const { return 0x07000003; }
     301             : 
     302           0 : PSERROR_Scripting_RegisterFunctionFailed::PSERROR_Scripting_RegisterFunctionFailed() : PSERROR_Scripting(NULL) { }
     303           0 : PSERROR_Scripting_RegisterFunctionFailed::PSERROR_Scripting_RegisterFunctionFailed(const char* msg) : PSERROR_Scripting(msg) { }
     304           0 : PSRETURN PSERROR_Scripting_RegisterFunctionFailed::getCode() const { return 0x07000004; }
     305             : 
     306           0 : PSERROR_Scripting_SetupFailed::PSERROR_Scripting_SetupFailed() : PSERROR_Scripting(NULL) { }
     307           0 : PSERROR_Scripting_SetupFailed::PSERROR_Scripting_SetupFailed(const char* msg) : PSERROR_Scripting(msg) { }
     308           0 : PSRETURN PSERROR_Scripting_SetupFailed::getCode() const { return 0x07000005; }
     309             : 
     310           0 : PSERROR_Scripting_TypeDoesNotExist::PSERROR_Scripting_TypeDoesNotExist() : PSERROR_Scripting(NULL) { }
     311           0 : PSERROR_Scripting_TypeDoesNotExist::PSERROR_Scripting_TypeDoesNotExist(const char* msg) : PSERROR_Scripting(msg) { }
     312           0 : PSRETURN PSERROR_Scripting_TypeDoesNotExist::getCode() const { return 0x07000006; }
     313             : 
     314           0 : PSERROR_Serialize_InvalidCharInString::PSERROR_Serialize_InvalidCharInString() : PSERROR_Serialize(NULL) { }
     315           0 : PSERROR_Serialize_InvalidCharInString::PSERROR_Serialize_InvalidCharInString(const char* msg) : PSERROR_Serialize(msg) { }
     316           0 : PSRETURN PSERROR_Serialize_InvalidCharInString::getCode() const { return 0x08000001; }
     317             : 
     318           2 : PSERROR_Serialize_InvalidScriptValue::PSERROR_Serialize_InvalidScriptValue() : PSERROR_Serialize(NULL) { }
     319           0 : PSERROR_Serialize_InvalidScriptValue::PSERROR_Serialize_InvalidScriptValue(const char* msg) : PSERROR_Serialize(msg) { }
     320           0 : PSRETURN PSERROR_Serialize_InvalidScriptValue::getCode() const { return 0x08000002; }
     321             : 
     322           2 : PSERROR_Serialize_OutOfBounds::PSERROR_Serialize_OutOfBounds() : PSERROR_Serialize(NULL) { }
     323           0 : PSERROR_Serialize_OutOfBounds::PSERROR_Serialize_OutOfBounds(const char* msg) : PSERROR_Serialize(msg) { }
     324           0 : PSRETURN PSERROR_Serialize_OutOfBounds::getCode() const { return 0x08000003; }
     325             : 
     326           0 : PSERROR_Serialize_ScriptError::PSERROR_Serialize_ScriptError() : PSERROR_Serialize(NULL) { }
     327           1 : PSERROR_Serialize_ScriptError::PSERROR_Serialize_ScriptError(const char* msg) : PSERROR_Serialize(msg) { }
     328           0 : PSRETURN PSERROR_Serialize_ScriptError::getCode() const { return 0x08000004; }
     329             : 
     330           0 : PSERROR_System_RequiredExtensionsMissing::PSERROR_System_RequiredExtensionsMissing() : PSERROR_System(NULL) { }
     331           0 : PSERROR_System_RequiredExtensionsMissing::PSERROR_System_RequiredExtensionsMissing(const char* msg) : PSERROR_System(msg) { }
     332           0 : PSRETURN PSERROR_System_RequiredExtensionsMissing::getCode() const { return 0x09000001; }
     333             : 
     334           0 : PSERROR_System_SDLInitFailed::PSERROR_System_SDLInitFailed() : PSERROR_System(NULL) { }
     335           0 : PSERROR_System_SDLInitFailed::PSERROR_System_SDLInitFailed(const char* msg) : PSERROR_System(msg) { }
     336           0 : PSRETURN PSERROR_System_SDLInitFailed::getCode() const { return 0x09000002; }
     337             : 
     338           0 : PSERROR_System_VmodeFailed::PSERROR_System_VmodeFailed() : PSERROR_System(NULL) { }
     339           0 : PSERROR_System_VmodeFailed::PSERROR_System_VmodeFailed(const char* msg) : PSERROR_System(msg) { }
     340           0 : PSRETURN PSERROR_System_VmodeFailed::getCode() const { return 0x09000003; }
     341             : 
     342           0 : PSERROR_Xeromyces_XMLOpenFailed::PSERROR_Xeromyces_XMLOpenFailed() : PSERROR_Xeromyces(NULL) { }
     343           0 : PSERROR_Xeromyces_XMLOpenFailed::PSERROR_Xeromyces_XMLOpenFailed(const char* msg) : PSERROR_Xeromyces(msg) { }
     344           0 : PSRETURN PSERROR_Xeromyces_XMLOpenFailed::getCode() const { return 0x0a000001; }
     345             : 
     346           0 : PSERROR_Xeromyces_XMLParseError::PSERROR_Xeromyces_XMLParseError() : PSERROR_Xeromyces(NULL) { }
     347           0 : PSERROR_Xeromyces_XMLParseError::PSERROR_Xeromyces_XMLParseError(const char* msg) : PSERROR_Xeromyces(msg) { }
     348           0 : PSRETURN PSERROR_Xeromyces_XMLParseError::getCode() const { return 0x0a000002; }
     349             : 
     350           0 : PSERROR_Xeromyces_XMLValidationFailed::PSERROR_Xeromyces_XMLValidationFailed() : PSERROR_Xeromyces(NULL) { }
     351           0 : PSERROR_Xeromyces_XMLValidationFailed::PSERROR_Xeromyces_XMLValidationFailed(const char* msg) : PSERROR_Xeromyces(msg) { }
     352           0 : PSRETURN PSERROR_Xeromyces_XMLValidationFailed::getCode() const { return 0x0a000003; }
     353             : 
     354             : 
     355           5 : PSERROR::PSERROR(const char* msg) : m_msg(msg) { }
     356             : 
     357           2 : const char* PSERROR::what() const throw ()
     358             : {
     359           2 :     return m_msg ? m_msg : GetErrorString(getCode());
     360             : }
     361             : 
     362           0 : const char* GetErrorString(PSRETURN code)
     363             : {
     364           0 :     switch (code)
     365             :     {
     366           0 :     case 0x01000001: return "CVFSFile_AlreadyLoaded";
     367           0 :     case 0x01000002: return "CVFSFile_LoadFailed";
     368           0 :     case 0x02000001: return "Deserialize_InvalidCharInString";
     369           0 :     case 0x02000002: return "Deserialize_OutOfBounds";
     370           0 :     case 0x02000003: return "Deserialize_ReadFailed";
     371           0 :     case 0x02000004: return "Deserialize_ScriptError";
     372           0 :     case 0x03000001: return "DllLoader_DllNotLoaded";
     373           0 :     case 0x03000002: return "DllLoader_SymbolNotFound";
     374           0 :     case 0x04000001: return "Error_InvalidError";
     375           0 :     case 0x05000001: return "File_InvalidType";
     376           0 :     case 0x05000002: return "File_InvalidVersion";
     377           0 :     case 0x05000003: return "File_OpenFailed";
     378           0 :     case 0x05000004: return "File_ReadFailed";
     379           0 :     case 0x05000005: return "File_UnexpectedEOF";
     380           0 :     case 0x05000006: return "File_WriteFailed";
     381           0 :     case 0x06030001: return "Game_World_MapLoadFailed";
     382           0 :     case 0x07010001: return "Scripting_DefineType_AlreadyExists";
     383           0 :     case 0x07010002: return "Scripting_DefineType_CreationFailed";
     384           0 :     case 0x07020001: return "Scripting_LoadFile_EvalErrors";
     385           0 :     case 0x07020002: return "Scripting_LoadFile_OpenFailed";
     386           0 :     case 0x07000001: return "Scripting_CallFunctionFailed";
     387           0 :     case 0x07000002: return "Scripting_CreateObjectFailed";
     388           0 :     case 0x07000003: return "Scripting_DefineConstantFailed";
     389           0 :     case 0x07000004: return "Scripting_RegisterFunctionFailed";
     390           0 :     case 0x07000005: return "Scripting_SetupFailed";
     391           0 :     case 0x07000006: return "Scripting_TypeDoesNotExist";
     392           0 :     case 0x08000001: return "Serialize_InvalidCharInString";
     393           0 :     case 0x08000002: return "Serialize_InvalidScriptValue";
     394           0 :     case 0x08000003: return "Serialize_OutOfBounds";
     395           0 :     case 0x08000004: return "Serialize_ScriptError";
     396           0 :     case 0x09000001: return "System_RequiredExtensionsMissing";
     397           0 :     case 0x09000002: return "System_SDLInitFailed";
     398           0 :     case 0x09000003: return "System_VmodeFailed";
     399           0 :     case 0x0a000001: return "Xeromyces_XMLOpenFailed";
     400           0 :     case 0x0a000002: return "Xeromyces_XMLParseError";
     401           0 :     case 0x0a000003: return "Xeromyces_XMLValidationFailed";
     402             : 
     403           0 :     default: return "Unrecognised error";
     404             :     }
     405             : }
     406             : 
     407           0 : void ThrowError(PSRETURN code)
     408             : {
     409           0 :     switch (code)  // Use 'break' in case someone tries to continue from the exception
     410             :     {
     411           0 :     case 0x01000001: throw PSERROR_CVFSFile_AlreadyLoaded(); break;
     412           0 :     case 0x01000002: throw PSERROR_CVFSFile_LoadFailed(); break;
     413           0 :     case 0x02000001: throw PSERROR_Deserialize_InvalidCharInString(); break;
     414           0 :     case 0x02000002: throw PSERROR_Deserialize_OutOfBounds(); break;
     415           0 :     case 0x02000003: throw PSERROR_Deserialize_ReadFailed(); break;
     416           0 :     case 0x02000004: throw PSERROR_Deserialize_ScriptError(); break;
     417           0 :     case 0x03000001: throw PSERROR_DllLoader_DllNotLoaded(); break;
     418           0 :     case 0x03000002: throw PSERROR_DllLoader_SymbolNotFound(); break;
     419           0 :     case 0x04000001: throw PSERROR_Error_InvalidError(); break;
     420           0 :     case 0x05000001: throw PSERROR_File_InvalidType(); break;
     421           0 :     case 0x05000002: throw PSERROR_File_InvalidVersion(); break;
     422           0 :     case 0x05000003: throw PSERROR_File_OpenFailed(); break;
     423           0 :     case 0x05000004: throw PSERROR_File_ReadFailed(); break;
     424           0 :     case 0x05000005: throw PSERROR_File_UnexpectedEOF(); break;
     425           0 :     case 0x05000006: throw PSERROR_File_WriteFailed(); break;
     426           0 :     case 0x06030001: throw PSERROR_Game_World_MapLoadFailed(); break;
     427           0 :     case 0x07010001: throw PSERROR_Scripting_DefineType_AlreadyExists(); break;
     428           0 :     case 0x07010002: throw PSERROR_Scripting_DefineType_CreationFailed(); break;
     429           0 :     case 0x07020001: throw PSERROR_Scripting_LoadFile_EvalErrors(); break;
     430           0 :     case 0x07020002: throw PSERROR_Scripting_LoadFile_OpenFailed(); break;
     431           0 :     case 0x07000001: throw PSERROR_Scripting_CallFunctionFailed(); break;
     432           0 :     case 0x07000002: throw PSERROR_Scripting_CreateObjectFailed(); break;
     433           0 :     case 0x07000003: throw PSERROR_Scripting_DefineConstantFailed(); break;
     434           0 :     case 0x07000004: throw PSERROR_Scripting_RegisterFunctionFailed(); break;
     435           0 :     case 0x07000005: throw PSERROR_Scripting_SetupFailed(); break;
     436           0 :     case 0x07000006: throw PSERROR_Scripting_TypeDoesNotExist(); break;
     437           0 :     case 0x08000001: throw PSERROR_Serialize_InvalidCharInString(); break;
     438           0 :     case 0x08000002: throw PSERROR_Serialize_InvalidScriptValue(); break;
     439           0 :     case 0x08000003: throw PSERROR_Serialize_OutOfBounds(); break;
     440           0 :     case 0x08000004: throw PSERROR_Serialize_ScriptError(); break;
     441           0 :     case 0x09000001: throw PSERROR_System_RequiredExtensionsMissing(); break;
     442           0 :     case 0x09000002: throw PSERROR_System_SDLInitFailed(); break;
     443           0 :     case 0x09000003: throw PSERROR_System_VmodeFailed(); break;
     444           0 :     case 0x0a000001: throw PSERROR_Xeromyces_XMLOpenFailed(); break;
     445           0 :     case 0x0a000002: throw PSERROR_Xeromyces_XMLParseError(); break;
     446           0 :     case 0x0a000003: throw PSERROR_Xeromyces_XMLValidationFailed(); break;
     447             : 
     448           0 :     default: throw PSERROR_Error_InvalidError(); // Hmm...
     449             :     }
     450           3 : }

Generated by: LCOV version 1.13