#include <exception.hh>
Public Member Functions | |
| Exception () | |
| Build an exception without file, line and error. | |
| Exception (const char *file, int line) | |
| Build an exception with a file and a line you can build this exception with Exception(HERE);. | |
| Exception (const std::string &err, const char *file, int line) | |
| Build an exception with a file, line and a error message. You can build this exception with Exception("error msg", HERE);. | |
| const std::string & | get_error () const |
| get error message if there is one | |
| const char * | get_file () const |
| get file where exception where launched if there is one | |
| int | get_line () const |
| get line where exception where launched if there is one | |
| void | print (std::ostream &stream) const |
| display all content of exception. | |
Protected Attributes | |
| std::string | _error |
| const char * | _file |
| int | _line |
Definition at line 37 of file exception.hh.
1.3.2