26#include "OgreLogManager.h"
34 toLogFile(exceptToLogFile)
42 catch (Ogre::Exception &)
49SException::SException(
const std::string& desc,
const std::string& src,
const char* typ,
const char* fil,
long lin,
bool exceptToLogFile) : line(lin),
54 toLogFile(exceptToLogFile)
62 catch (Ogre::Exception &)
70 typeName(exception.typeName),
71 description(exception.description),
72 source(exception.source),
74 toLogFile(exception.toLogFile)
96 std::ostringstream desc;
101 desc <<
" at " <<
file <<
" (line " <<
line <<
")";
138SExceptionFileNotFound::SExceptionFileNotFound(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile) :
SException(exceptDescription, exceptSource,
"SExceptionFileNotFound", exceptFile, exceptLine, exceptToLogFile)
142SExceptionIO::SExceptionIO(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile) :
SException(exceptDescription, exceptSource,
"SExceptionIO", exceptFile, exceptLine, exceptToLogFile)
146SExceptionItemIdentity::SExceptionItemIdentity(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile) :
SException(exceptDescription, exceptSource,
"SExceptionItemIdentity", exceptFile, exceptLine, exceptToLogFile)
150SExceptionItemNotFound::SExceptionItemNotFound(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile) :
SException(exceptDescription, exceptSource,
"SExceptionItemNotFound", exceptFile, exceptLine, exceptToLogFile)
170SExceptionBadCast::SExceptionBadCast(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile) :
SException(exceptDescription, exceptSource,
"SExceptionBadCast", exceptFile, exceptLine, exceptToLogFile)
174SExceptionWriteData::SExceptionWriteData(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile) :
SException(exceptDescription, exceptSource,
"SExceptionWriteData", exceptFile, exceptLine, exceptToLogFile)
178SExceptionWriteOnly::SExceptionWriteOnly(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile) :
SException(exceptDescription, exceptSource,
"SExceptionWriteOnly", exceptFile, exceptLine, exceptToLogFile)
182SExceptionReadData::SExceptionReadData(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile) :
SException(exceptDescription, exceptSource,
"SExceptionReadData", exceptFile, exceptLine, exceptToLogFile)
186SExceptionReadOnly::SExceptionReadOnly(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile) :
SException(exceptDescription, exceptSource,
"SExceptionReadOnly", exceptFile, exceptLine, exceptToLogFile)
190SExceptionOutOfBound::SExceptionOutOfBound(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile) :
SException(exceptDescription, exceptSource,
"SExceptionOutOfBound", exceptFile, exceptLine, exceptToLogFile)
SExceptionBadCast(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionExternalAPIError(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionFileNotFound(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
Base class for SO3 custom exception.
virtual const std::string & GetDescription() const
const char * what() const
virtual const std::string & GetSource() const
SException(const std::string &exceptDescription, const std::string &exceptSource, bool exceptToLogFile)
virtual const std::string & GetFile() const
virtual const std::string & GetFullDescription() const
virtual long GetLine() const
void operator=(const SException &exception)
SExceptionIO(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionInternalError(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionInvalidParameters(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionItemIdentity(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionItemNotFound(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionNullReference(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionOutOfBound(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionReadData(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionReadOnly(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionUnimplemented(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionWriteData(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)
SExceptionWriteOnly(const std::string &exceptDescription, const std::string &exceptSource, const char *exceptFile, long exceptLine, bool exceptToLogFile=false)