nuclear@0: #include "exceptions.h" nuclear@0: nuclear@0: EngineInitException::EngineInitException() { nuclear@0: str = "Unknown"; nuclear@0: } nuclear@0: nuclear@0: EngineInitException::EngineInitException(string reason) { nuclear@0: str = reason; nuclear@0: } nuclear@0: nuclear@0: string EngineInitException::GetReason() const { nuclear@0: string tmp = "An error occured while initializing the 3D Engine\nReason: "; nuclear@0: tmp += str; nuclear@0: return tmp; nuclear@0: } nuclear@0: nuclear@0: EngineModuleNotFoundException::EngineModuleNotFoundException() { nuclear@0: str = "Unknown Module"; nuclear@0: } nuclear@0: nuclear@0: EngineModuleNotFoundException::EngineModuleNotFoundException(string modulename) { nuclear@0: str = modulename; nuclear@0: } nuclear@0: nuclear@0: string EngineModuleNotFoundException::GetReason() const { nuclear@0: string tmp = "The 3D Engine could not link a required module.\n"; nuclear@0: tmp += "Please contact the program ventor to obtain the missing file.\nMissing File: "; nuclear@0: tmp += str; nuclear@0: return tmp; nuclear@0: } nuclear@0: nuclear@0: EngineGeneralException::EngineGeneralException() { nuclear@0: str = "Unknown"; nuclear@0: } nuclear@0: nuclear@0: EngineGeneralException::EngineGeneralException(string reason) { nuclear@0: str = reason; nuclear@0: } nuclear@0: nuclear@0: string EngineGeneralException::GetReason() const { nuclear@0: string tmp = "An error occured in the 3D Engine\nReason: "; nuclear@0: tmp += str; nuclear@0: return tmp; nuclear@0: }