absence_thelab

view src/3deng/exceptions.cpp @ 0:1cffe3409164

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 23 Oct 2014 01:46:07 +0300
parents
children
line source
1 #include "exceptions.h"
3 EngineInitException::EngineInitException() {
4 str = "Unknown";
5 }
7 EngineInitException::EngineInitException(string reason) {
8 str = reason;
9 }
11 string EngineInitException::GetReason() const {
12 string tmp = "An error occured while initializing the 3D Engine\nReason: ";
13 tmp += str;
14 return tmp;
15 }
17 EngineModuleNotFoundException::EngineModuleNotFoundException() {
18 str = "Unknown Module";
19 }
21 EngineModuleNotFoundException::EngineModuleNotFoundException(string modulename) {
22 str = modulename;
23 }
25 string EngineModuleNotFoundException::GetReason() const {
26 string tmp = "The 3D Engine could not link a required module.\n";
27 tmp += "Please contact the program ventor to obtain the missing file.\nMissing File: ";
28 tmp += str;
29 return tmp;
30 }
32 EngineGeneralException::EngineGeneralException() {
33 str = "Unknown";
34 }
36 EngineGeneralException::EngineGeneralException(string reason) {
37 str = reason;
38 }
40 string EngineGeneralException::GetReason() const {
41 string tmp = "An error occured in the 3D Engine\nReason: ";
42 tmp += str;
43 return tmp;
44 }