25#ifndef __SO3_EXCEPTION_H__
26#define __SO3_EXCEPTION_H__
53 SException(
const std::string& exceptDescription,
const std::string& exceptSource,
bool exceptToLogFile);
58 SException(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptType,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile);
76 virtual const std::
string& GetFullDescription() const;
80 virtual const std::
string& GetSource() const;
84 virtual const std::
string& GetFile() const;
88 virtual
long GetLine() const;
92 virtual const std::
string& GetDescription() const;
96 const
char* what() const throw();
111 SExceptionUnimplemented(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
126 SExceptionNullReference(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
141 SExceptionFileNotFound(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
156 SExceptionIO(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
171 SExceptionItemIdentity(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
186 SExceptionItemNotFound(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
201 SExceptionInternalError(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
216 SExceptionExternalAPIError(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
231 SExceptionInvalidParameters(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
246 SExceptionBadCast(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
261 SExceptionWriteData(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
276 SExceptionWriteOnly(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
291 SExceptionReadData(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
306 SExceptionReadOnly(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
321 SExceptionOutOfBound(
const std::string& exceptDescription,
const std::string& exceptSource,
const char* exceptFile,
long exceptLine,
bool exceptToLogFile=
false);
329 #define SO3_EXCEPT(exceptionType, desc, src, toLogFile) throw(exceptionType(desc, src, __FILE__, __LINE__, toLogFile))
SException indicating that an attempt was done to cast a pointer to a non-related type.
SException indicating that an unknow error occurs, but we are pretty sure that it's not a SO3 interna...
SException indicating that a request for a file failed, cause it was not found or inaccessible on the...
Base class for SO3 custom exception.
SException indicating that an error occurs while reading or writing data from a file or memory.
SException indicating that an unknow error occurs, but we are pretty sure that it's a so3 internal er...
SException indicating that at least one invalid parameter was provided on a functionnality call.
SException indicating that an attempt to create a new item with a given identifier fails cause anothe...
SException indicating that an attempt to get an item fails, cause there's no item with the given iden...
SException indicating that a call to a pointer variable not initialized was attempted.
SException indicating that an attempt to get a tab element with a given index out of bound.
SException indicating that an error occurs while reading some data from disk or memory.
SException indicating that an attempt to read some data from an unreachable source occurs.
SException indicating that a call to an unimplemented functionnality was done.
SException indicating that an error occurs while writing some data to disk or memory.
SException indicating that an attempt to write some data to an unreachable destination occurs.