Project

General

Profile

SO3Engine

Base class for SO3 custom exception. More...

#include <SO3Exception.h>

Inheritance diagram for SO3::SException:
SO3::SExceptionBadCast SO3::SExceptionExternalAPIError SO3::SExceptionFileNotFound SO3::SExceptionIO SO3::SExceptionInternalError SO3::SExceptionInvalidParameters SO3::SExceptionItemIdentity SO3::SExceptionItemNotFound SO3::SExceptionNullReference SO3::SExceptionOutOfBound SO3::SExceptionReadData SO3::SExceptionReadOnly SO3::SExceptionUnimplemented SO3::SExceptionWriteData SO3::SExceptionWriteOnly

Public Member Functions

 SException (const std::string &exceptDescription, const std::string &exceptSource, bool exceptToLogFile)
 
 SException (const std::string &exceptDescription, const std::string &exceptSource, const char *exceptType, const char *exceptFile, long exceptLine, bool exceptToLogFile)
 
 SException (const SException &exception)
 
virtual ~SException () throw ()
 
void operator= (const SException &exception)
 
virtual const std::string & GetFullDescription () const
 
virtual const std::string & GetSource () const
 
virtual const std::string & GetFile () const
 
virtual long GetLine () const
 
virtual const std::string & GetDescription () const
 
const char * what () const throw ()
 

Protected Attributes

long line
 
std::string typeName
 
std::string description
 
std::string source
 
std::string file
 
bool toLogFile
 
std::string fullDesc
 

Detailed Description

Base class for SO3 custom exception.

Definition at line 36 of file SO3Exception.h.

Constructor & Destructor Documentation

◆ SException() [1/3]

SO3::SException::SException ( const std::string &  exceptDescription,
const std::string &  exceptSource,
bool  exceptToLogFile 
)

Constructor.

Definition at line 31 of file SO3Exception.cpp.

◆ SException() [2/3]

SO3::SException::SException ( const std::string &  exceptDescription,
const std::string &  exceptSource,
const char *  exceptType,
const char *  exceptFile,
long  exceptLine,
bool  exceptToLogFile 
)

Constructor.

Definition at line 49 of file SO3Exception.cpp.

◆ SException() [3/3]

SO3::SException::SException ( const SException exception)

Copy constructor.

Definition at line 69 of file SO3Exception.cpp.

◆ ~SException()

SO3::SException::~SException ( )
throw (
)
virtual

Destructor.

Definition at line 78 of file SO3Exception.cpp.

Member Function Documentation

◆ GetDescription()

const std::string & SO3::SException::GetDescription ( ) const
virtual

Definition at line 124 of file SO3Exception.cpp.

◆ GetFile()

const std::string & SO3::SException::GetFile ( ) const
virtual

Definition at line 114 of file SO3Exception.cpp.

◆ GetFullDescription()

const std::string & SO3::SException::GetFullDescription ( ) const
virtual

Definition at line 92 of file SO3Exception.cpp.

◆ GetLine()

long SO3::SException::GetLine ( ) const
virtual

Definition at line 119 of file SO3Exception.cpp.

◆ GetSource()

const std::string & SO3::SException::GetSource ( ) const
virtual

Definition at line 109 of file SO3Exception.cpp.

◆ operator=()

void SO3::SException::operator= ( const SException exception)

Definition at line 82 of file SO3Exception.cpp.

◆ what()

const char * SO3::SException::what ( ) const
throw (
)

Definition at line 129 of file SO3Exception.cpp.

Member Data Documentation

◆ description

std::string SO3::SException::description
protected

Definition at line 42 of file SO3Exception.h.

◆ file

std::string SO3::SException::file
protected

Definition at line 44 of file SO3Exception.h.

◆ fullDesc

std::string SO3::SException::fullDesc
mutableprotected

Definition at line 46 of file SO3Exception.h.

◆ line

long SO3::SException::line
protected

Definition at line 40 of file SO3Exception.h.

◆ source

std::string SO3::SException::source
protected

Definition at line 43 of file SO3Exception.h.

◆ toLogFile

bool SO3::SException::toLogFile
protected

Definition at line 45 of file SO3Exception.h.

◆ typeName

std::string SO3::SException::typeName
protected

Definition at line 41 of file SO3Exception.h.


The documentation for this class was generated from the following files: