CMS 3D CMS Logo

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 noexcept
 
virtual ~PFToolsException () noexcept
 

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 ( )
virtualnoexcept

Definition at line 11 of file PFToolsException.cc.

12 {
13 }

Member Function Documentation

const char * PFToolsException::what ( ) const
virtualnoexcept

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().