Top-level exception class of the shark library. More...
#include <shark/Core/Exception.h>
Inheritance diagram for shark::Exception:Public Member Functions | |
| Exception (const std::string &what=std::string(), const std::string &file=std::string(), unsigned int line=0) | |
| 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... | |
Top-level exception class of the shark library.
Definition at line 43 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. |
Definition at line 51 of file Exception.h.
|
inline | |||||||||||||
Default d'tor.
Definition at line 59 of file Exception.h.
|
inline |
Accesses the name of the file the exception occurred in.
Definition at line 71 of file Exception.h.
References m_file.
|
inline |
Accesses the line of the file the exception occured in.
Definition at line 78 of file Exception.h.
References m_line.
|
inline | |||||||||||||
Accesses the description of the exception.
Definition at line 64 of file Exception.h.
References m_what.
Referenced by main().
|
protected |
File name the exception occurred in.
Definition at line 84 of file Exception.h.
Referenced by file().
|
protected |
Line of file the exception occurred in.
Definition at line 85 of file Exception.h.
Referenced by line().
|
protected |