|
#include <CException.h>

Public Member Functions | |
| CException (std::string text, std::string file="", int line=0, std::string description="") | |
| virtual | ~CException () throw () |
| Destructor. | |
| virtual const char * | what () const throw () |
| Returns complete text of exception. | |
| std::string | message () const |
| Returns exception message without file name, line number, or description. | |
| std::string | file () const |
| Returns exception file name. | |
| int | line () const |
| Returns exception line number. | |
| std::string | description () const |
| Returns exception description. | |
Contains information about what happened and where. It's based on std::exception, so if you just want to catch STL and SPTK exceptions - you can use try {} catch (std::exception& e) {} block.
| sptk::CException::CException | ( | std::string | text, | |
| std::string | file = "", |
|||
| int | line = 0, |
|||
| std::string | description = "" | |||
| ) |
Constructor
| text | std::string, the exception text | |
| file | std::string, the file where exception occurs | |
| line | int, the line number in the file where exception occurs | |
| description | std::string, the optional description information |