Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Errors.cpp
Go to the documentation of this file.
1 // Auto-generated by errorlist.pl - do not edit.
2 
3 #include "precompiled.h"
4 
5 #include "Errors.h"
6 
7 class PSERROR_CVFSFile : public PSERROR { protected: PSERROR_CVFSFile(const char* msg); };
8 class PSERROR_Deserialize : public PSERROR { protected: PSERROR_Deserialize(const char* msg); };
9 class PSERROR_DllLoader : public PSERROR { protected: PSERROR_DllLoader(const char* msg); };
10 class PSERROR_Error : public PSERROR { protected: PSERROR_Error(const char* msg); };
11 class PSERROR_File : public PSERROR { protected: PSERROR_File(const char* msg); };
12 class PSERROR_GUI : public PSERROR { protected: PSERROR_GUI(const char* msg); };
13 class PSERROR_Game : public PSERROR { protected: PSERROR_Game(const char* msg); };
14 class PSERROR_I18n : public PSERROR { protected: PSERROR_I18n(const char* msg); };
15 class PSERROR_Renderer : public PSERROR { protected: PSERROR_Renderer(const char* msg); };
16 class PSERROR_Scripting : public PSERROR { protected: PSERROR_Scripting(const char* msg); };
17 class PSERROR_Serialize : public PSERROR { protected: PSERROR_Serialize(const char* msg); };
18 class PSERROR_System : public PSERROR { protected: PSERROR_System(const char* msg); };
19 class PSERROR_Xeromyces : public PSERROR { protected: PSERROR_Xeromyces(const char* msg); };
20 
21 class PSERROR_Game_World : public PSERROR_Game { protected: PSERROR_Game_World(const char* msg); };
22 class PSERROR_I18n_Script : public PSERROR_I18n { protected: PSERROR_I18n_Script(const char* msg); };
23 class PSERROR_Scripting_DefineType : public PSERROR_Scripting { protected: PSERROR_Scripting_DefineType(const char* msg); };
24 class PSERROR_Scripting_LoadFile : public PSERROR_Scripting { protected: PSERROR_Scripting_LoadFile(const char* msg); };
25 
72 
73 extern const PSRETURN PSRETURN_CVFSFile_AlreadyLoaded = 0x01000001;
74 extern const PSRETURN PSRETURN_CVFSFile_InvalidBufferAccess = 0x01000002;
75 extern const PSRETURN PSRETURN_CVFSFile_LoadFailed = 0x01000003;
76 extern const PSRETURN PSRETURN_Deserialize_InvalidCharInString = 0x02000001;
77 extern const PSRETURN PSRETURN_Deserialize_OutOfBounds = 0x02000002;
78 extern const PSRETURN PSRETURN_Deserialize_ReadFailed = 0x02000003;
79 extern const PSRETURN PSRETURN_Deserialize_ScriptError = 0x02000004;
80 extern const PSRETURN PSRETURN_DllLoader_DllNotLoaded = 0x03000001;
81 extern const PSRETURN PSRETURN_DllLoader_SymbolNotFound = 0x03000002;
82 extern const PSRETURN PSRETURN_Error_InvalidError = 0x04000001;
83 extern const PSRETURN PSRETURN_File_InvalidType = 0x05000001;
84 extern const PSRETURN PSRETURN_File_InvalidVersion = 0x05000002;
85 extern const PSRETURN PSRETURN_File_OpenFailed = 0x05000003;
86 extern const PSRETURN PSRETURN_File_ReadFailed = 0x05000004;
87 extern const PSRETURN PSRETURN_File_UnexpectedEOF = 0x05000005;
88 extern const PSRETURN PSRETURN_File_WriteFailed = 0x05000006;
89 extern const PSRETURN PSRETURN_GUI_InvalidSetting = 0x06000001;
90 extern const PSRETURN PSRETURN_GUI_JSOpenFailed = 0x06000002;
91 extern const PSRETURN PSRETURN_GUI_NameAmbiguity = 0x06000003;
92 extern const PSRETURN PSRETURN_GUI_NullObjectProvided = 0x06000004;
93 extern const PSRETURN PSRETURN_GUI_ObjectNeedsName = 0x06000005;
94 extern const PSRETURN PSRETURN_GUI_OperationNeedsGUIObject = 0x06000006;
95 extern const PSRETURN PSRETURN_GUI_UnableToParse = 0x06000007;
96 extern const PSRETURN PSRETURN_Game_World_MapLoadFailed = 0x07040001;
97 extern const PSRETURN PSRETURN_I18n_Script_SetupFailed = 0x08030001;
98 extern const PSRETURN PSRETURN_Renderer_VBOFailed = 0x09000001;
101 extern const PSRETURN PSRETURN_Scripting_LoadFile_EvalErrors = 0x0a020001;
102 extern const PSRETURN PSRETURN_Scripting_LoadFile_OpenFailed = 0x0a020002;
103 extern const PSRETURN PSRETURN_Scripting_CallFunctionFailed = 0x0a000001;
104 extern const PSRETURN PSRETURN_Scripting_ConversionFailed = 0x0a000002;
105 extern const PSRETURN PSRETURN_Scripting_CreateObjectFailed = 0x0a000003;
106 extern const PSRETURN PSRETURN_Scripting_DefineConstantFailed = 0x0a000004;
107 extern const PSRETURN PSRETURN_Scripting_RegisterFunctionFailed = 0x0a000005;
108 extern const PSRETURN PSRETURN_Scripting_SetupFailed = 0x0a000006;
109 extern const PSRETURN PSRETURN_Scripting_TypeDoesNotExist = 0x0a000007;
110 extern const PSRETURN PSRETURN_Serialize_InvalidCharInString = 0x0b000001;
111 extern const PSRETURN PSRETURN_Serialize_InvalidScriptValue = 0x0b000002;
112 extern const PSRETURN PSRETURN_Serialize_OutOfBounds = 0x0b000003;
113 extern const PSRETURN PSRETURN_Serialize_ScriptError = 0x0b000004;
114 extern const PSRETURN PSRETURN_System_RequiredExtensionsMissing = 0x0c000001;
115 extern const PSRETURN PSRETURN_System_SDLInitFailed = 0x0c000002;
116 extern const PSRETURN PSRETURN_System_VmodeFailed = 0x0c000003;
117 extern const PSRETURN PSRETURN_Xeromyces_XMLOpenFailed = 0x0d000001;
118 extern const PSRETURN PSRETURN_Xeromyces_XMLParseError = 0x0d000002;
119 
120 extern const PSRETURN MASK__PSRETURN_CVFSFile = 0xff000000;
121 extern const PSRETURN CODE__PSRETURN_CVFSFile = 0x01000000;
122 extern const PSRETURN MASK__PSRETURN_Deserialize = 0xff000000;
123 extern const PSRETURN CODE__PSRETURN_Deserialize = 0x02000000;
124 extern const PSRETURN MASK__PSRETURN_DllLoader = 0xff000000;
125 extern const PSRETURN CODE__PSRETURN_DllLoader = 0x03000000;
126 extern const PSRETURN MASK__PSRETURN_Error = 0xff000000;
127 extern const PSRETURN CODE__PSRETURN_Error = 0x04000000;
128 extern const PSRETURN MASK__PSRETURN_File = 0xff000000;
129 extern const PSRETURN CODE__PSRETURN_File = 0x05000000;
130 extern const PSRETURN MASK__PSRETURN_GUI = 0xff000000;
131 extern const PSRETURN CODE__PSRETURN_GUI = 0x06000000;
132 extern const PSRETURN MASK__PSRETURN_Game = 0xff000000;
133 extern const PSRETURN CODE__PSRETURN_Game = 0x07000000;
134 extern const PSRETURN MASK__PSRETURN_I18n = 0xff000000;
135 extern const PSRETURN CODE__PSRETURN_I18n = 0x08000000;
136 extern const PSRETURN MASK__PSRETURN_Renderer = 0xff000000;
137 extern const PSRETURN CODE__PSRETURN_Renderer = 0x09000000;
138 extern const PSRETURN MASK__PSRETURN_Scripting = 0x0a000000;
139 extern const PSRETURN CODE__PSRETURN_Scripting = 0x0a000000;
140 extern const PSRETURN MASK__PSRETURN_Serialize = 0x0b000000;
141 extern const PSRETURN CODE__PSRETURN_Serialize = 0x0b000000;
142 extern const PSRETURN MASK__PSRETURN_System = 0x0c000000;
143 extern const PSRETURN CODE__PSRETURN_System = 0x0c000000;
144 extern const PSRETURN MASK__PSRETURN_Xeromyces = 0x0d000000;
145 extern const PSRETURN CODE__PSRETURN_Xeromyces = 0x0d000000;
146 extern const PSRETURN MASK__PSRETURN_Game_World = 0xffff0000;
147 extern const PSRETURN CODE__PSRETURN_Game_World = 0x07040000;
148 extern const PSRETURN MASK__PSRETURN_I18n_Script = 0xffff0000;
149 extern const PSRETURN CODE__PSRETURN_I18n_Script = 0x08030000;
150 extern const PSRETURN MASK__PSRETURN_Scripting_DefineType = 0x0aff0000;
151 extern const PSRETURN CODE__PSRETURN_Scripting_DefineType = 0x0a010000;
152 extern const PSRETURN MASK__PSRETURN_Scripting_LoadFile = 0x0aff0000;
153 extern const PSRETURN CODE__PSRETURN_Scripting_LoadFile = 0x0a020000;
154 
155 extern const PSRETURN MASK__PSRETURN_CVFSFile_AlreadyLoaded = 0xffffffff;
156 extern const PSRETURN CODE__PSRETURN_CVFSFile_AlreadyLoaded = 0x01000001;
157 extern const PSRETURN MASK__PSRETURN_CVFSFile_InvalidBufferAccess = 0xffffffff;
158 extern const PSRETURN CODE__PSRETURN_CVFSFile_InvalidBufferAccess = 0x01000002;
159 extern const PSRETURN MASK__PSRETURN_CVFSFile_LoadFailed = 0xffffffff;
160 extern const PSRETURN CODE__PSRETURN_CVFSFile_LoadFailed = 0x01000003;
163 extern const PSRETURN MASK__PSRETURN_Deserialize_OutOfBounds = 0xffffffff;
164 extern const PSRETURN CODE__PSRETURN_Deserialize_OutOfBounds = 0x02000002;
165 extern const PSRETURN MASK__PSRETURN_Deserialize_ReadFailed = 0xffffffff;
166 extern const PSRETURN CODE__PSRETURN_Deserialize_ReadFailed = 0x02000003;
167 extern const PSRETURN MASK__PSRETURN_Deserialize_ScriptError = 0xffffffff;
168 extern const PSRETURN CODE__PSRETURN_Deserialize_ScriptError = 0x02000004;
169 extern const PSRETURN MASK__PSRETURN_DllLoader_DllNotLoaded = 0xffffffff;
170 extern const PSRETURN CODE__PSRETURN_DllLoader_DllNotLoaded = 0x03000001;
171 extern const PSRETURN MASK__PSRETURN_DllLoader_SymbolNotFound = 0xffffffff;
172 extern const PSRETURN CODE__PSRETURN_DllLoader_SymbolNotFound = 0x03000002;
173 extern const PSRETURN MASK__PSRETURN_Error_InvalidError = 0xffffffff;
174 extern const PSRETURN CODE__PSRETURN_Error_InvalidError = 0x04000001;
175 extern const PSRETURN MASK__PSRETURN_File_InvalidType = 0xffffffff;
176 extern const PSRETURN CODE__PSRETURN_File_InvalidType = 0x05000001;
177 extern const PSRETURN MASK__PSRETURN_File_InvalidVersion = 0xffffffff;
178 extern const PSRETURN CODE__PSRETURN_File_InvalidVersion = 0x05000002;
179 extern const PSRETURN MASK__PSRETURN_File_OpenFailed = 0xffffffff;
180 extern const PSRETURN CODE__PSRETURN_File_OpenFailed = 0x05000003;
181 extern const PSRETURN MASK__PSRETURN_File_ReadFailed = 0xffffffff;
182 extern const PSRETURN CODE__PSRETURN_File_ReadFailed = 0x05000004;
183 extern const PSRETURN MASK__PSRETURN_File_UnexpectedEOF = 0xffffffff;
184 extern const PSRETURN CODE__PSRETURN_File_UnexpectedEOF = 0x05000005;
185 extern const PSRETURN MASK__PSRETURN_File_WriteFailed = 0xffffffff;
186 extern const PSRETURN CODE__PSRETURN_File_WriteFailed = 0x05000006;
187 extern const PSRETURN MASK__PSRETURN_GUI_InvalidSetting = 0xffffffff;
188 extern const PSRETURN CODE__PSRETURN_GUI_InvalidSetting = 0x06000001;
189 extern const PSRETURN MASK__PSRETURN_GUI_JSOpenFailed = 0xffffffff;
190 extern const PSRETURN CODE__PSRETURN_GUI_JSOpenFailed = 0x06000002;
191 extern const PSRETURN MASK__PSRETURN_GUI_NameAmbiguity = 0xffffffff;
192 extern const PSRETURN CODE__PSRETURN_GUI_NameAmbiguity = 0x06000003;
193 extern const PSRETURN MASK__PSRETURN_GUI_NullObjectProvided = 0xffffffff;
194 extern const PSRETURN CODE__PSRETURN_GUI_NullObjectProvided = 0x06000004;
195 extern const PSRETURN MASK__PSRETURN_GUI_ObjectNeedsName = 0xffffffff;
196 extern const PSRETURN CODE__PSRETURN_GUI_ObjectNeedsName = 0x06000005;
197 extern const PSRETURN MASK__PSRETURN_GUI_OperationNeedsGUIObject = 0xffffffff;
198 extern const PSRETURN CODE__PSRETURN_GUI_OperationNeedsGUIObject = 0x06000006;
199 extern const PSRETURN MASK__PSRETURN_GUI_UnableToParse = 0xffffffff;
200 extern const PSRETURN CODE__PSRETURN_GUI_UnableToParse = 0x06000007;
201 extern const PSRETURN MASK__PSRETURN_Game_World_MapLoadFailed = 0xffffffff;
202 extern const PSRETURN CODE__PSRETURN_Game_World_MapLoadFailed = 0x07040001;
203 extern const PSRETURN MASK__PSRETURN_I18n_Script_SetupFailed = 0xffffffff;
204 extern const PSRETURN CODE__PSRETURN_I18n_Script_SetupFailed = 0x08030001;
205 extern const PSRETURN MASK__PSRETURN_Renderer_VBOFailed = 0xffffffff;
206 extern const PSRETURN CODE__PSRETURN_Renderer_VBOFailed = 0x09000001;
215 extern const PSRETURN MASK__PSRETURN_Scripting_CallFunctionFailed = 0xffffffff;
216 extern const PSRETURN CODE__PSRETURN_Scripting_CallFunctionFailed = 0x0a000001;
217 extern const PSRETURN MASK__PSRETURN_Scripting_ConversionFailed = 0xffffffff;
218 extern const PSRETURN CODE__PSRETURN_Scripting_ConversionFailed = 0x0a000002;
219 extern const PSRETURN MASK__PSRETURN_Scripting_CreateObjectFailed = 0xffffffff;
220 extern const PSRETURN CODE__PSRETURN_Scripting_CreateObjectFailed = 0x0a000003;
225 extern const PSRETURN MASK__PSRETURN_Scripting_SetupFailed = 0xffffffff;
226 extern const PSRETURN CODE__PSRETURN_Scripting_SetupFailed = 0x0a000006;
227 extern const PSRETURN MASK__PSRETURN_Scripting_TypeDoesNotExist = 0xffffffff;
228 extern const PSRETURN CODE__PSRETURN_Scripting_TypeDoesNotExist = 0x0a000007;
231 extern const PSRETURN MASK__PSRETURN_Serialize_InvalidScriptValue = 0xffffffff;
232 extern const PSRETURN CODE__PSRETURN_Serialize_InvalidScriptValue = 0x0b000002;
233 extern const PSRETURN MASK__PSRETURN_Serialize_OutOfBounds = 0xffffffff;
234 extern const PSRETURN CODE__PSRETURN_Serialize_OutOfBounds = 0x0b000003;
235 extern const PSRETURN MASK__PSRETURN_Serialize_ScriptError = 0xffffffff;
236 extern const PSRETURN CODE__PSRETURN_Serialize_ScriptError = 0x0b000004;
239 extern const PSRETURN MASK__PSRETURN_System_SDLInitFailed = 0xffffffff;
240 extern const PSRETURN CODE__PSRETURN_System_SDLInitFailed = 0x0c000002;
241 extern const PSRETURN MASK__PSRETURN_System_VmodeFailed = 0xffffffff;
242 extern const PSRETURN CODE__PSRETURN_System_VmodeFailed = 0x0c000003;
243 extern const PSRETURN MASK__PSRETURN_Xeromyces_XMLOpenFailed = 0xffffffff;
244 extern const PSRETURN CODE__PSRETURN_Xeromyces_XMLOpenFailed = 0x0d000001;
245 extern const PSRETURN MASK__PSRETURN_Xeromyces_XMLParseError = 0xffffffff;
246 extern const PSRETURN CODE__PSRETURN_Xeromyces_XMLParseError = 0x0d000002;
247 
248 PSERROR_CVFSFile::PSERROR_CVFSFile(const char* msg) : PSERROR(msg) { }
251 PSERROR_Error::PSERROR_Error(const char* msg) : PSERROR(msg) { }
252 PSERROR_File::PSERROR_File(const char* msg) : PSERROR(msg) { }
253 PSERROR_GUI::PSERROR_GUI(const char* msg) : PSERROR(msg) { }
254 PSERROR_Game::PSERROR_Game(const char* msg) : PSERROR(msg) { }
255 PSERROR_I18n::PSERROR_I18n(const char* msg) : PSERROR(msg) { }
256 PSERROR_Renderer::PSERROR_Renderer(const char* msg) : PSERROR(msg) { }
259 PSERROR_System::PSERROR_System(const char* msg) : PSERROR(msg) { }
265 
268 PSRETURN PSERROR_CVFSFile_AlreadyLoaded::getCode() const { return 0x01000001; }
269 
273 
276 PSRETURN PSERROR_CVFSFile_LoadFailed::getCode() const { return 0x01000003; }
277 
281 
285 
288 PSRETURN PSERROR_Deserialize_ReadFailed::getCode() const { return 0x02000003; }
289 
293 
296 PSRETURN PSERROR_DllLoader_DllNotLoaded::getCode() const { return 0x03000001; }
297 
301 
304 PSRETURN PSERROR_Error_InvalidError::getCode() const { return 0x04000001; }
305 
308 PSRETURN PSERROR_File_InvalidType::getCode() const { return 0x05000001; }
309 
312 PSRETURN PSERROR_File_InvalidVersion::getCode() const { return 0x05000002; }
313 
316 PSRETURN PSERROR_File_OpenFailed::getCode() const { return 0x05000003; }
317 
320 PSRETURN PSERROR_File_ReadFailed::getCode() const { return 0x05000004; }
321 
324 PSRETURN PSERROR_File_UnexpectedEOF::getCode() const { return 0x05000005; }
325 
328 PSRETURN PSERROR_File_WriteFailed::getCode() const { return 0x05000006; }
329 
332 PSRETURN PSERROR_GUI_InvalidSetting::getCode() const { return 0x06000001; }
333 
336 PSRETURN PSERROR_GUI_JSOpenFailed::getCode() const { return 0x06000002; }
337 
340 PSRETURN PSERROR_GUI_NameAmbiguity::getCode() const { return 0x06000003; }
341 
344 PSRETURN PSERROR_GUI_NullObjectProvided::getCode() const { return 0x06000004; }
345 
348 PSRETURN PSERROR_GUI_ObjectNeedsName::getCode() const { return 0x06000005; }
349 
353 
356 PSRETURN PSERROR_GUI_UnableToParse::getCode() const { return 0x06000007; }
357 
361 
365 
368 PSRETURN PSERROR_Renderer_VBOFailed::getCode() const { return 0x09000001; }
369 
373 
377 
381 
385 
389 
393 
397 
401 
405 
408 PSRETURN PSERROR_Scripting_SetupFailed::getCode() const { return 0x0a000006; }
409 
413 
417 
421 
424 PSRETURN PSERROR_Serialize_OutOfBounds::getCode() const { return 0x0b000003; }
425 
428 PSRETURN PSERROR_Serialize_ScriptError::getCode() const { return 0x0b000004; }
429 
433 
436 PSRETURN PSERROR_System_SDLInitFailed::getCode() const { return 0x0c000002; }
437 
440 PSRETURN PSERROR_System_VmodeFailed::getCode() const { return 0x0c000003; }
441 
445 
449 
450 
451 PSERROR::PSERROR(const char* msg) : m_msg(msg) { }
452 
453 const char* PSERROR::what() const throw ()
454 {
455  return m_msg ? m_msg : GetErrorString(getCode());
456 }
457 
458 const char* GetErrorString(PSRETURN code)
459 {
460  switch (code)
461  {
462  case 0x01000001: return "CVFSFile_AlreadyLoaded";
463  case 0x01000002: return "CVFSFile_InvalidBufferAccess";
464  case 0x01000003: return "CVFSFile_LoadFailed";
465  case 0x02000001: return "Deserialize_InvalidCharInString";
466  case 0x02000002: return "Deserialize_OutOfBounds";
467  case 0x02000003: return "Deserialize_ReadFailed";
468  case 0x02000004: return "Deserialize_ScriptError";
469  case 0x03000001: return "DllLoader_DllNotLoaded";
470  case 0x03000002: return "DllLoader_SymbolNotFound";
471  case 0x04000001: return "Error_InvalidError";
472  case 0x05000001: return "File_InvalidType";
473  case 0x05000002: return "File_InvalidVersion";
474  case 0x05000003: return "File_OpenFailed";
475  case 0x05000004: return "File_ReadFailed";
476  case 0x05000005: return "File_UnexpectedEOF";
477  case 0x05000006: return "File_WriteFailed";
478  case 0x06000001: return "GUI_InvalidSetting";
479  case 0x06000002: return "GUI_JSOpenFailed";
480  case 0x06000003: return "GUI_NameAmbiguity";
481  case 0x06000004: return "GUI_NullObjectProvided";
482  case 0x06000005: return "GUI_ObjectNeedsName";
483  case 0x06000006: return "GUI_OperationNeedsGUIObject";
484  case 0x06000007: return "GUI_UnableToParse";
485  case 0x07040001: return "Game_World_MapLoadFailed";
486  case 0x08030001: return "I18n_Script_SetupFailed";
487  case 0x09000001: return "Renderer_VBOFailed";
488  case 0x0a010001: return "Scripting_DefineType_AlreadyExists";
489  case 0x0a010002: return "Scripting_DefineType_CreationFailed";
490  case 0x0a020001: return "Scripting_LoadFile_EvalErrors";
491  case 0x0a020002: return "Scripting_LoadFile_OpenFailed";
492  case 0x0a000001: return "Scripting_CallFunctionFailed";
493  case 0x0a000002: return "Scripting_ConversionFailed";
494  case 0x0a000003: return "Scripting_CreateObjectFailed";
495  case 0x0a000004: return "Scripting_DefineConstantFailed";
496  case 0x0a000005: return "Scripting_RegisterFunctionFailed";
497  case 0x0a000006: return "Scripting_SetupFailed";
498  case 0x0a000007: return "Scripting_TypeDoesNotExist";
499  case 0x0b000001: return "Serialize_InvalidCharInString";
500  case 0x0b000002: return "Serialize_InvalidScriptValue";
501  case 0x0b000003: return "Serialize_OutOfBounds";
502  case 0x0b000004: return "Serialize_ScriptError";
503  case 0x0c000001: return "System_RequiredExtensionsMissing";
504  case 0x0c000002: return "System_SDLInitFailed";
505  case 0x0c000003: return "System_VmodeFailed";
506  case 0x0d000001: return "Xeromyces_XMLOpenFailed";
507  case 0x0d000002: return "Xeromyces_XMLParseError";
508 
509  default: return "Unrecognised error";
510  }
511 }
512 
514 {
515  switch (code) // Use 'break' in case someone tries to continue from the exception
516  {
517  case 0x01000001: throw PSERROR_CVFSFile_AlreadyLoaded(); break;
518  case 0x01000002: throw PSERROR_CVFSFile_InvalidBufferAccess(); break;
519  case 0x01000003: throw PSERROR_CVFSFile_LoadFailed(); break;
520  case 0x02000001: throw PSERROR_Deserialize_InvalidCharInString(); break;
521  case 0x02000002: throw PSERROR_Deserialize_OutOfBounds(); break;
522  case 0x02000003: throw PSERROR_Deserialize_ReadFailed(); break;
523  case 0x02000004: throw PSERROR_Deserialize_ScriptError(); break;
524  case 0x03000001: throw PSERROR_DllLoader_DllNotLoaded(); break;
525  case 0x03000002: throw PSERROR_DllLoader_SymbolNotFound(); break;
526  case 0x04000001: throw PSERROR_Error_InvalidError(); break;
527  case 0x05000001: throw PSERROR_File_InvalidType(); break;
528  case 0x05000002: throw PSERROR_File_InvalidVersion(); break;
529  case 0x05000003: throw PSERROR_File_OpenFailed(); break;
530  case 0x05000004: throw PSERROR_File_ReadFailed(); break;
531  case 0x05000005: throw PSERROR_File_UnexpectedEOF(); break;
532  case 0x05000006: throw PSERROR_File_WriteFailed(); break;
533  case 0x06000001: throw PSERROR_GUI_InvalidSetting(); break;
534  case 0x06000002: throw PSERROR_GUI_JSOpenFailed(); break;
535  case 0x06000003: throw PSERROR_GUI_NameAmbiguity(); break;
536  case 0x06000004: throw PSERROR_GUI_NullObjectProvided(); break;
537  case 0x06000005: throw PSERROR_GUI_ObjectNeedsName(); break;
538  case 0x06000006: throw PSERROR_GUI_OperationNeedsGUIObject(); break;
539  case 0x06000007: throw PSERROR_GUI_UnableToParse(); break;
540  case 0x07040001: throw PSERROR_Game_World_MapLoadFailed(); break;
541  case 0x08030001: throw PSERROR_I18n_Script_SetupFailed(); break;
542  case 0x09000001: throw PSERROR_Renderer_VBOFailed(); break;
543  case 0x0a010001: throw PSERROR_Scripting_DefineType_AlreadyExists(); break;
544  case 0x0a010002: throw PSERROR_Scripting_DefineType_CreationFailed(); break;
545  case 0x0a020001: throw PSERROR_Scripting_LoadFile_EvalErrors(); break;
546  case 0x0a020002: throw PSERROR_Scripting_LoadFile_OpenFailed(); break;
547  case 0x0a000001: throw PSERROR_Scripting_CallFunctionFailed(); break;
548  case 0x0a000002: throw PSERROR_Scripting_ConversionFailed(); break;
549  case 0x0a000003: throw PSERROR_Scripting_CreateObjectFailed(); break;
550  case 0x0a000004: throw PSERROR_Scripting_DefineConstantFailed(); break;
551  case 0x0a000005: throw PSERROR_Scripting_RegisterFunctionFailed(); break;
552  case 0x0a000006: throw PSERROR_Scripting_SetupFailed(); break;
553  case 0x0a000007: throw PSERROR_Scripting_TypeDoesNotExist(); break;
554  case 0x0b000001: throw PSERROR_Serialize_InvalidCharInString(); break;
555  case 0x0b000002: throw PSERROR_Serialize_InvalidScriptValue(); break;
556  case 0x0b000003: throw PSERROR_Serialize_OutOfBounds(); break;
557  case 0x0b000004: throw PSERROR_Serialize_ScriptError(); break;
558  case 0x0c000001: throw PSERROR_System_RequiredExtensionsMissing(); break;
559  case 0x0c000002: throw PSERROR_System_SDLInitFailed(); break;
560  case 0x0c000003: throw PSERROR_System_VmodeFailed(); break;
561  case 0x0d000001: throw PSERROR_Xeromyces_XMLOpenFailed(); break;
562  case 0x0d000002: throw PSERROR_Xeromyces_XMLParseError(); break;
563 
564  default: throw PSERROR_Error_InvalidError(); // Hmm...
565  }
566 }
const PSRETURN CODE__PSRETURN_Scripting_ConversionFailed
PSRETURN getCode() const
Definition: Errors.cpp:296
const PSRETURN PSRETURN_Deserialize_InvalidCharInString
PSRETURN getCode() const
Definition: Errors.cpp:316
const PSRETURN CODE__PSRETURN_Error
const PSRETURN CODE__PSRETURN_File_OpenFailed
PSRETURN getCode() const
Definition: Errors.cpp:312
const PSRETURN MASK__PSRETURN_DllLoader_SymbolNotFound
const PSRETURN PSRETURN_Xeromyces_XMLParseError
const PSRETURN MASK__PSRETURN_Scripting_LoadFile_OpenFailed
const PSRETURN CODE__PSRETURN_File_InvalidVersion
const PSRETURN MASK__PSRETURN_GUI_NameAmbiguity
const PSRETURN MASK__PSRETURN_File_ReadFailed
const PSRETURN CODE__PSRETURN_I18n_Script_SetupFailed
PSRETURN getCode() const
Definition: Errors.cpp:356
PSRETURN getCode() const
Definition: Errors.cpp:440
const PSRETURN CODE__PSRETURN_System_SDLInitFailed
PSERROR_System(const char *msg)
Definition: Errors.cpp:259
const PSRETURN PSRETURN_GUI_JSOpenFailed
PSERROR_Deserialize(const char *msg)
Definition: Errors.cpp:249
const PSRETURN CODE__PSRETURN_Scripting_SetupFailed
const PSRETURN MASK__PSRETURN_Serialize_ScriptError
const PSRETURN MASK__PSRETURN_DllLoader
const PSRETURN PSRETURN_CVFSFile_LoadFailed
const PSRETURN MASK__PSRETURN_CVFSFile_InvalidBufferAccess
PSRETURN getCode() const
Definition: Errors.cpp:408
PSRETURN getCode() const
Definition: Errors.cpp:320
const PSRETURN CODE__PSRETURN_Deserialize_ScriptError
PSERROR_GUI(const char *msg)
Definition: Errors.cpp:253
const PSRETURN MASK__PSRETURN_Game_World_MapLoadFailed
const PSRETURN MASK__PSRETURN_File
const PSRETURN PSRETURN_Scripting_CallFunctionFailed
const PSRETURN MASK__PSRETURN_Scripting_CallFunctionFailed
const PSRETURN MASK__PSRETURN_File_OpenFailed
PSRETURN getCode() const
Definition: Errors.cpp:360
PSRETURN getCode() const
Definition: Errors.cpp:268
const PSRETURN MASK__PSRETURN_Game
const PSRETURN PSRETURN_Scripting_LoadFile_EvalErrors
const PSRETURN CODE__PSRETURN_Scripting_CallFunctionFailed
const PSRETURN MASK__PSRETURN_I18n_Script
const PSRETURN CODE__PSRETURN_Xeromyces_XMLOpenFailed
const PSRETURN CODE__PSRETURN_GUI_ObjectNeedsName
PSRETURN getCode() const
Definition: Errors.cpp:332
const PSRETURN PSRETURN_Deserialize_ScriptError
const PSRETURN CODE__PSRETURN_Error_InvalidError
const PSRETURN MASK__PSRETURN_Serialize_InvalidScriptValue
const PSRETURN PSRETURN_Deserialize_ReadFailed
const PSRETURN PSRETURN_GUI_NullObjectProvided
const PSRETURN MASK__PSRETURN_GUI_OperationNeedsGUIObject
const PSRETURN CODE__PSRETURN_Serialize_ScriptError
PSERROR_File(const char *msg)
Definition: Errors.cpp:252
const PSRETURN PSRETURN_GUI_OperationNeedsGUIObject
const PSRETURN CODE__PSRETURN_Serialize_OutOfBounds
PSRETURN getCode() const
Definition: Errors.cpp:288
PSRETURN getCode() const
Definition: Errors.cpp:364
const PSRETURN PSRETURN_Error_InvalidError
void ThrowError(PSRETURN code)
Definition: Errors.cpp:513
PSRETURN getCode() const
Definition: Errors.cpp:284
const PSRETURN PSRETURN_Scripting_SetupFailed
const PSRETURN PSRETURN_Scripting_ConversionFailed
PSERROR_Game_World(const char *msg)
Definition: Errors.cpp:261
const PSRETURN CODE__PSRETURN_Scripting_DefineType
const PSRETURN CODE__PSRETURN_Scripting_DefineConstantFailed
const PSRETURN PSRETURN_Scripting_DefineConstantFailed
const PSRETURN PSRETURN_DllLoader_DllNotLoaded
const PSRETURN MASK__PSRETURN_Error_InvalidError
const PSRETURN CODE__PSRETURN_Scripting_LoadFile_EvalErrors
const PSRETURN CODE__PSRETURN_Serialize_InvalidCharInString
PSRETURN getCode() const
Definition: Errors.cpp:308
const PSRETURN PSRETURN_System_VmodeFailed
const PSRETURN PSRETURN_Scripting_LoadFile_OpenFailed
PSERROR_Renderer(const char *msg)
Definition: Errors.cpp:256
const PSRETURN MASK__PSRETURN_Scripting_SetupFailed
const PSRETURN CODE__PSRETURN_GUI_OperationNeedsGUIObject
PSRETURN getCode() const
Definition: Errors.cpp:276
const PSRETURN CODE__PSRETURN_Game
const PSRETURN MASK__PSRETURN_Deserialize_InvalidCharInString
const PSRETURN CODE__PSRETURN_Xeromyces_XMLParseError
const PSRETURN MASK__PSRETURN_Deserialize_ScriptError
const PSRETURN MASK__PSRETURN_File_UnexpectedEOF
const PSRETURN CODE__PSRETURN_Scripting
const PSRETURN MASK__PSRETURN_Error
const PSRETURN CODE__PSRETURN_File_UnexpectedEOF
PSERROR_Scripting(const char *msg)
Definition: Errors.cpp:257
PSERROR_CVFSFile(const char *msg)
Definition: Errors.cpp:248
const PSRETURN PSRETURN_System_SDLInitFailed
PSRETURN getCode() const
Definition: Errors.cpp:336
virtual PSRETURN getCode() const =0
const PSRETURN CODE__PSRETURN_Xeromyces
PSERROR_DllLoader(const char *msg)
Definition: Errors.cpp:250
const PSRETURN PSRETURN_Scripting_TypeDoesNotExist
const PSRETURN CODE__PSRETURN_GUI_NameAmbiguity
const PSRETURN PSRETURN_CVFSFile_AlreadyLoaded
PSERROR_Game(const char *msg)
Definition: Errors.cpp:254
PSRETURN getCode() const
Definition: Errors.cpp:344
const PSRETURN PSRETURN_I18n_Script_SetupFailed
const PSRETURN CODE__PSRETURN_Serialize
const PSRETURN MASK__PSRETURN_I18n
const PSRETURN CODE__PSRETURN_Scripting_TypeDoesNotExist
PSERROR_Scripting_LoadFile(const char *msg)
Definition: Errors.cpp:264
PSERROR_Xeromyces(const char *msg)
Definition: Errors.cpp:260
u32 PSRETURN
Definition: Errors.h:75
PSRETURN getCode() const
Definition: Errors.cpp:428
const PSRETURN CODE__PSRETURN_Renderer
const PSRETURN MASK__PSRETURN_GUI_JSOpenFailed
const PSRETURN MASK__PSRETURN_System_VmodeFailed
const PSRETURN CODE__PSRETURN_System_VmodeFailed
const PSRETURN MASK__PSRETURN_Scripting_DefineConstantFailed
const PSRETURN PSRETURN_System_RequiredExtensionsMissing
const PSRETURN PSRETURN_Scripting_DefineType_CreationFailed
const PSRETURN PSRETURN_Deserialize_OutOfBounds
virtual const char * what() const
Definition: Errors.cpp:453
const PSRETURN CODE__PSRETURN_Deserialize_OutOfBounds
const PSRETURN MASK__PSRETURN_Serialize_OutOfBounds
const PSRETURN CODE__PSRETURN_Renderer_VBOFailed
const PSRETURN CODE__PSRETURN_DllLoader
const PSRETURN PSRETURN_Xeromyces_XMLOpenFailed
const PSRETURN CODE__PSRETURN_GUI_NullObjectProvided
const PSRETURN CODE__PSRETURN_Scripting_CreateObjectFailed
const PSRETURN MASK__PSRETURN_Renderer_VBOFailed
const PSRETURN MASK__PSRETURN_Scripting_ConversionFailed
const PSRETURN CODE__PSRETURN_CVFSFile_AlreadyLoaded
const PSRETURN MASK__PSRETURN_CVFSFile_LoadFailed
const PSRETURN CODE__PSRETURN_GUI_JSOpenFailed
PSRETURN getCode() const
Definition: Errors.cpp:324
const PSRETURN MASK__PSRETURN_File_WriteFailed
const PSRETURN CODE__PSRETURN_Scripting_LoadFile
const PSRETURN CODE__PSRETURN_Deserialize
const PSRETURN CODE__PSRETURN_DllLoader_SymbolNotFound
const PSRETURN CODE__PSRETURN_Scripting_RegisterFunctionFailed
const char * m_msg
Definition: Errors.h:84
const PSRETURN PSRETURN_File_InvalidVersion
const PSRETURN MASK__PSRETURN_GUI
const PSRETURN PSRETURN_File_InvalidType
const PSRETURN MASK__PSRETURN_System
const PSRETURN PSRETURN_File_OpenFailed
const PSRETURN CODE__PSRETURN_I18n
const char * GetErrorString(PSRETURN code)
Definition: Errors.cpp:458
const PSRETURN CODE__PSRETURN_Deserialize_InvalidCharInString
const PSRETURN PSRETURN_File_ReadFailed
const PSRETURN PSRETURN_Serialize_InvalidScriptValue
const PSRETURN CODE__PSRETURN_CVFSFile_LoadFailed
const PSRETURN MASK__PSRETURN_Scripting_RegisterFunctionFailed
const PSRETURN CODE__PSRETURN_Serialize_InvalidScriptValue
const PSRETURN CODE__PSRETURN_Scripting_DefineType_CreationFailed
PSERROR_I18n_Script(const char *msg)
Definition: Errors.cpp:262
PSERROR(const char *msg)
Definition: Errors.cpp:451
PSRETURN getCode() const
Definition: Errors.cpp:328
const PSRETURN CODE__PSRETURN_File_InvalidType
const PSRETURN CODE__PSRETURN_File_WriteFailed
const PSRETURN PSRETURN_Scripting_RegisterFunctionFailed
PSERROR_Error(const char *msg)
Definition: Errors.cpp:251
const PSRETURN MASK__PSRETURN_Xeromyces_XMLParseError
const PSRETURN CODE__PSRETURN_Scripting_LoadFile_OpenFailed
const PSRETURN MASK__PSRETURN_I18n_Script_SetupFailed
const PSRETURN MASK__PSRETURN_GUI_ObjectNeedsName
const PSRETURN PSRETURN_GUI_ObjectNeedsName
PSRETURN getCode() const
Definition: Errors.cpp:444
const PSRETURN MASK__PSRETURN_Scripting_DefineType_CreationFailed
const PSRETURN MASK__PSRETURN_Scripting_LoadFile
const PSRETURN PSRETURN_GUI_InvalidSetting
const PSRETURN PSRETURN_File_WriteFailed
const PSRETURN MASK__PSRETURN_Xeromyces
const PSRETURN MASK__PSRETURN_Scripting_CreateObjectFailed
const PSRETURN CODE__PSRETURN_System
PSRETURN getCode() const
Definition: Errors.cpp:436
const PSRETURN CODE__PSRETURN_File
const PSRETURN PSRETURN_Game_World_MapLoadFailed
PSRETURN getCode() const
Definition: Errors.cpp:304
const PSRETURN CODE__PSRETURN_GUI_InvalidSetting
PSERROR_Serialize(const char *msg)
Definition: Errors.cpp:258
const PSRETURN MASK__PSRETURN_GUI_NullObjectProvided
const PSRETURN CODE__PSRETURN_Game_World
const PSRETURN MASK__PSRETURN_Scripting_DefineType_AlreadyExists
const PSRETURN CODE__PSRETURN_CVFSFile_InvalidBufferAccess
const PSRETURN CODE__PSRETURN_DllLoader_DllNotLoaded
const PSRETURN PSRETURN_Renderer_VBOFailed
const PSRETURN CODE__PSRETURN_Game_World_MapLoadFailed
const PSRETURN CODE__PSRETURN_System_RequiredExtensionsMissing
const PSRETURN MASK__PSRETURN_System_SDLInitFailed
const PSRETURN PSRETURN_Scripting_DefineType_AlreadyExists
const PSRETURN CODE__PSRETURN_GUI_UnableToParse
PSRETURN getCode() const
Definition: Errors.cpp:368
PSRETURN getCode() const
Definition: Errors.cpp:424
const PSRETURN MASK__PSRETURN_Deserialize_ReadFailed
const PSRETURN CODE__PSRETURN_GUI
PSRETURN getCode() const
Definition: Errors.cpp:448
const PSRETURN MASK__PSRETURN_Xeromyces_XMLOpenFailed
const PSRETURN MASK__PSRETURN_GUI_UnableToParse
const PSRETURN CODE__PSRETURN_Scripting_DefineType_AlreadyExists
const PSRETURN MASK__PSRETURN_Scripting_DefineType
const PSRETURN MASK__PSRETURN_Serialize
const PSRETURN MASK__PSRETURN_Renderer
const PSRETURN MASK__PSRETURN_Deserialize_OutOfBounds
const PSRETURN PSRETURN_GUI_NameAmbiguity
const PSRETURN MASK__PSRETURN_CVFSFile
const PSRETURN PSRETURN_DllLoader_SymbolNotFound
const PSRETURN MASK__PSRETURN_DllLoader_DllNotLoaded
const PSRETURN PSRETURN_GUI_UnableToParse
const PSRETURN MASK__PSRETURN_File_InvalidType
const PSRETURN PSRETURN_File_UnexpectedEOF
const PSRETURN PSRETURN_Serialize_ScriptError
const PSRETURN MASK__PSRETURN_System_RequiredExtensionsMissing
const PSRETURN MASK__PSRETURN_Scripting_TypeDoesNotExist
Definition: Errors.h:77
const PSRETURN MASK__PSRETURN_CVFSFile_AlreadyLoaded
PSRETURN getCode() const
Definition: Errors.cpp:340
PSERROR_Scripting_DefineType(const char *msg)
Definition: Errors.cpp:263
const PSRETURN MASK__PSRETURN_GUI_InvalidSetting
const PSRETURN PSRETURN_Scripting_CreateObjectFailed
const PSRETURN CODE__PSRETURN_CVFSFile
PSRETURN getCode() const
Definition: Errors.cpp:348
const PSRETURN PSRETURN_Serialize_OutOfBounds
const PSRETURN MASK__PSRETURN_Scripting
const PSRETURN CODE__PSRETURN_Deserialize_ReadFailed
const PSRETURN MASK__PSRETURN_Deserialize
const PSRETURN MASK__PSRETURN_File_InvalidVersion
PSRETURN getCode() const
Definition: Errors.cpp:300
const PSRETURN PSRETURN_CVFSFile_InvalidBufferAccess
const PSRETURN MASK__PSRETURN_Serialize_InvalidCharInString
PSERROR_I18n(const char *msg)
Definition: Errors.cpp:255
const PSRETURN MASK__PSRETURN_Scripting_LoadFile_EvalErrors
PSRETURN getCode() const
Definition: Errors.cpp:292
const PSRETURN PSRETURN_Serialize_InvalidCharInString
const PSRETURN CODE__PSRETURN_File_ReadFailed
const PSRETURN MASK__PSRETURN_Game_World
const PSRETURN CODE__PSRETURN_I18n_Script