Public Member Functions | Protected Member Functions | Protected Attributes | Friends

Exception Class Reference

#include <Exception.h>

List of all members.

Public Member Functions

 Exception ()
 Exception (const Exception &e)
 Exception (const string &arg)
Exceptionoperator= (const Exception &rhs)
deque< string >::const_iterator begin ()
deque< string >::const_iterator end ()
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 ()

Protected Member Functions

virtual void print (ostream &os=cerr) const

Protected Attributes

deque< string > exception_queue

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.

Definition at line 49 of file Exception.h.


Constructor & Destructor Documentation

Exception::Exception (  )  [inline]

Constructs an Exception with no specified detail message.

Definition at line 80 of file Exception.h.

Exception::Exception ( const string &  arg  )  [inline]

Constructs an Exception with a specified detail message.

Definition at line 90 of file Exception.h.


Member Function Documentation

deque<string>::const_iterator Exception::begin (  )  [inline]

Get the iterator pointing to the beginning of the dequeue.

Definition at line 100 of file Exception.h.

deque<string>::const_iterator Exception::end (  )  [inline]

Get the iterator pointing to the end of the dequeue.

Definition at line 107 of file Exception.h.

string Exception::get_message ( void   )  const [inline]

Get the most current message

Definition at line 114 of file Exception.h.

void Exception::print ( ostream &  os = cerr  )  const [protected, virtual]

Prints this and its backtrace to the specified output stream.

Definition at line 43 of file Exception.cc.

void Exception::set_message ( const string &  msg  ) 

Add a message.

Definition at line 48 of file Exception.cc.


Friends And Related Function Documentation

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

Prints this and its backtrace to the specified output stream.

Definition at line 55 of file Exception.h.

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

Prints this and its backtrace to the specified output stream.

Definition at line 64 of file Exception.h.


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