Exception  1.0.4
 All Classes Functions Friends
Exception Class Reference

#include <Exception.h>

+ Inheritance diagram for Exception:
+ Collaboration diagram for Exception:

Public Member Functions

 Exception ()
 
 Exception (const Exception &e)
 
 Exception (const string &arg)
 
Exceptionoperator= (const Exception &rhs)
 
deque< string >::const_iterator begin () const
 
deque< string >::const_iterator end () const
 
string get_message (void) const
 
void set_message (const string &msg)
 
void set_rethrow_message (const string &file, const int linenum)
 
const char * what () const throw ()
 
void update_what ()
 

Protected Member Functions

virtual void print (ostream &os=cerr) const
 

Protected Attributes

deque< string > exception_queue
 
string _what
 

Friends

ostream & operator<< (ostream &os, Exception &a)
 
ostream & operator<< (ostream &os, Exception *a)
 

Detailed Description

The class Exception, all the subclasses as defined by the user, are a form of conditions that a reasonable application might want to catch.

Constructor & Destructor Documentation

Exception::Exception ( )
inline

Constructs an Exception with no specified detail message.

Exception::Exception ( const string &  arg)
inline

Constructs an Exception with a specified detail message.

Member Function Documentation

deque<string>::const_iterator Exception::begin ( ) const
inline

Get the iterator pointing to the beginning of the dequeue.

Referenced by print().

deque<string>::const_iterator Exception::end ( ) const
inline

Get the iterator pointing to the end of the dequeue.

Referenced by print().

string Exception::get_message ( void  ) const
inline

Get the most current message

void Exception::print ( ostream &  os = cerr) const
protectedvirtual

Prints this and its backtrace to the specified output stream.

References begin(), and end().

void Exception::set_message ( const string &  msg)

Add a message.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  os,
Exception a 
)
friend

Prints this and its backtrace to the specified output stream.

ostream& operator<< ( ostream &  os,
Exception a 
)
friend

Prints this and its backtrace to the specified output stream.


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