test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
pftools::PFToolsException Class Reference

General purpose exception class for use by classes in the pftools namespace. More...

#include <PFToolsException.h>

Inheritance diagram for pftools::PFToolsException:

Public Member Functions

 PFToolsException (const std::string &aErrorDescription="")
 
virtual const char * what () const throw ()
 
virtual ~PFToolsException () throw ()
 

Protected Attributes

std::string myDescription
 

Detailed Description

General purpose exception class for use by classes in the pftools namespace.

Author
Jamie Ballin
Date
April 2008

Definition at line 14 of file PFToolsException.h.

Constructor & Destructor Documentation

PFToolsException::PFToolsException ( const std::string &  aErrorDescription = "")

Definition at line 6 of file PFToolsException.cc.

References myDescription.

7 {
8  myDescription = aErrorDescription;
9 }
PFToolsException::~PFToolsException ( )
throw (
)
virtual

Definition at line 11 of file PFToolsException.cc.

12 {
13 }

Member Function Documentation

const char * PFToolsException::what ( ) const
throw (
)
virtual

Definition at line 15 of file PFToolsException.cc.

References myDescription.

15  {
16  return myDescription.c_str();
17 }

Member Data Documentation

std::string pftools::PFToolsException::myDescription
protected

Definition at line 23 of file PFToolsException.h.

Referenced by PFToolsException(), and what().