libcsdbg  1.28
C++ exception (and generic) stack trace debug library
csdbg::exception Class Reference

This class is a throwable with a textual description of an error. More...

#include <exception.hpp>

+ Inheritance diagram for csdbg::exception:
+ Collaboration diagram for csdbg::exception:

Public Member Functions

 exception (const i8 *,...)
 Object constructor. More...
 
 exception (const exception &)
 Object copy constructor. More...
 
virtual ~exception ()
 Object destructor. More...
 
virtual exceptionclone () const
 Object virtual copy constructor. More...
 
virtual const i8msg () const
 Get the exception message. More...
 
virtual exceptionoperator= (const exception &)
 Assignment operator. More...
 
- Public Member Functions inherited from csdbg::object
virtual ~object ()=0
 To be implemented. More...
 
virtual const i8class_name () const
 Query the class name of an object descending from csdbg::object. More...
 

Protected Attributes

i8m_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...
 

Detailed Description

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.


The documentation for this class was generated from the following files: