Top-level exception class of the shark library. More...
#include <shark/Core/Exception.h>
Public Member Functions | |
Exception (const std::string &what="unknown reason", const std::string &file="unknown", unsigned int line=0, const std::string &func="function") | |
Default c'tor. More... | |
~Exception () throw () | |
Default d'tor. More... | |
const char * | what () const throw () |
Accesses the description of the exception. More... | |
const std::string & | file () const |
Accesses the name of the file the exception occurred in. More... | |
unsigned int | line () const |
Accesses the line of the file the exception occured in. More... | |
Protected Attributes | |
std::string | m_what |
Description of the exception. More... | |
std::string | m_file |
File name the exception occurred in. More... | |
unsigned int | m_line |
Line of file the exception occurred in. More... | |
std::string | m_func |
Function name the exception occured in. More... | |
std::string | m_message |
complete error message More... | |
Top-level exception class of the shark library.
Definition at line 45 of file Exception.h.
|
inline |
Default c'tor.
[in] | what | String that describes the exception. |
[in] | file | Filename the function that has thrown the exception resides in. |
[in] | line | Line of file that has thrown the exception. |
[in] | func | Name of the Function the error appeared in. |
Definition at line 54 of file Exception.h.
|
inline |
Default d'tor.
Definition at line 70 of file Exception.h.
|
inline |
Accesses the name of the file the exception occurred in.
Definition at line 82 of file Exception.h.
References m_file.
|
inline |
Accesses the line of the file the exception occured in.
Definition at line 89 of file Exception.h.
References m_line.
Referenced by Exception().
|
inline |
Accesses the description of the exception.
Definition at line 75 of file Exception.h.
References m_message.
Referenced by Exception(), and main().
|
protected |
File name the exception occurred in.
Definition at line 95 of file Exception.h.
Referenced by Exception(), and file().
|
protected |
Function name the exception occured in.
Definition at line 97 of file Exception.h.
Referenced by Exception().
|
protected |
Line of file the exception occurred in.
Definition at line 96 of file Exception.h.
Referenced by line().
|
protected |
complete error message
Definition at line 98 of file Exception.h.
Referenced by Exception(), and what().
|
protected |
Description of the exception.
Definition at line 94 of file Exception.h.