qpid::ExceptionHolder Class Reference

Holder for a heap-allocated exc eption that can be stack allocated and thrown safely. More...

#include <ExceptionHolder.h>

Inheritance diagram for qpid::ExceptionHolder:

Inheritance graph
[legend]
Collaboration diagram for qpid::ExceptionHolder:

Collaboration graph
[legend]
List of all members.

Public Types

typedef boost::shared_ptr<
Exception
shared_ptr

Public Member Functions

 ExceptionHolder (Exception *p) throw ()
 ExceptionHolder (shared_ptr p) throw ()
 ExceptionHolder (const Exception &e) throw ()
 ExceptionHolder (const std::exception &e)
const char * what () const throw ()
std::string toString () const throw ()
Exceptionclone () const throw ()
void throwIf () const
void throwSelf () const

Detailed Description

Holder for a heap-allocated exc eption that can be stack allocated and thrown safely.

Basically this is a shared_ptr with the Exception functions added so the catcher need not be aware that it is a pointer rather than a reference.

shared_ptr is chosen over auto_ptr because it has normal copy semantics.


The documentation for this class was generated from the following file:
Generated on Tue Apr 17 14:22:10 2007 for Qpid by  doxygen 1.4.7