libcsdbg
1.28
C++ exception (and generic) stack trace debug library
|
This class is a throwable with a textual description of an error. More...
#include <exception.hpp>
Public Member Functions | |
exception (const i8 *,...) | |
Object constructor. More... | |
exception (const exception &) | |
Object copy constructor. More... | |
virtual | ~exception () |
Object destructor. More... | |
virtual exception * | clone () const |
Object virtual copy constructor. More... | |
virtual const i8 * | msg () const |
Get the exception message. More... | |
virtual exception & | operator= (const exception &) |
Assignment operator. More... | |
Public Member Functions inherited from csdbg::object | |
virtual | ~object ()=0 |
To be implemented. More... | |
virtual const i8 * | class_name () const |
Query the class name of an object descending from csdbg::object. More... | |
Protected Attributes | |
i8 * | m_msg |
Error description message. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &, const exception &) |
Stream insertion operator for csdbg::exception objects. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &lval, const std::exception &rval) |
Stream insertion operator for std::exception objects. More... | |
This class is a throwable with a textual description of an error.
An exception object can be constructed using a printf-style format string and a variable argument list (for its error message). If a recursive exception occurs in the object constructor, it is caught and silently ignored. In this case the object is still safe to use by ignoring its message. Although objects of this class are not thread safe, overloaded std::ostream insertion operators that output exceptions synchronize thread access
Definition at line 26 of file exception.hpp.